(function(){var templateCache = window.$templateCache||Ares.templateCache;templateCache.put('/app/gift/components/membership-type-edit-base/membership-type-edit-base-view.html','<div id="membership-type-edit-base-wrap" class="enyo">    <style>        #membership-type-edit-base-wrap {            padding: 15px 15px;            height: 100%;        }            #membership-type-edit-base-wrap .help-block {                margin-bottom: 0;            }            #membership-type-edit-base-wrap .control-label {                min-width: 120px;            }    </style>    <div class="form-group row">        <label for="name" class="control-label ">            <span style="color:red">*</span>            会员卡名称        </label>        <input id="name" name="name" class="form-control"               placeholder="会员卡名称" type="text"               ng-disabled="isBrowse"               ng-model="membershipType.name" autofocus />    </div>    <div class="form-group row">        <label for="allowShare" class="control-label">允许共享</label>        <div class="row-cell">            <input type="checkbox" id="allowShare" name="allowShare"                   class="enyo-checkbox-switcher"                   ng-disabled="isBrowse"                   ng-model="membershipType.allowShare" />            <label class="enyo-checkbox-switcher-label" for="allowShare">                {{ membershipType.allowShare?"共享":"不共享" }}            </label>        </div>        <div class="row-cell" ng-show="membershipType.allowShare">            <label for="maxShare" class="control-label">最大共享数</label>            <div class="row-cell">                <ares-numeric-input min="0" max="99999" decimal="0"                                    value="membershipType.maxShare"                                    disabled="isBrowse"                                    style="width:100px;"></ares-numeric-input>            </div>        </div>    </div>    <div class="form-group row" ng-if="isYouzanEnabled">        <label class="control-label" for="isIntegrateYouzan">是否集成有赞会员</label>        <div class="row-cell">            <input type="checkbox" id="isIntegrateYouzan" name="isIntegrateYouzan"                   class="enyo-checkbox-switcher"                   ng-disabled="isBrowse"                   ng-model="membershipType.isIntegrateYouzan" />            <label class="enyo-checkbox-switcher-label" for="isIntegrateYouzan">                {{ membershipType.isIntegrateYouzan?"是":"否" }}            </label>        </div>    </div>    <div class="form-group row">        <label class="control-label" for="allowSell">是否在售</label>        <div class="row-cell">            <input type="checkbox" id="allowSell" name="allowSell"                   class="enyo-checkbox-switcher"                   ng-disabled="isBrowse"                   ng-model="membershipType.allowSell" />            <label class="enyo-checkbox-switcher-label" for="allowSell">                {{ membershipType.allowSell?"是":"否" }}            </label>        </div>        <div class="row-cell">            <label class="control-label">有效期</label>            <div class="row-cell">                <ares-numeric-input min="-1" max="999" decimal="0"                                    disabled="isBrowse"                                    value="membershipType.validPeriod"></ares-numeric-input>            </div>            <span>年</span>        </div>    </div>    <div class="form-group row">        <label class="control-label">名称缩写</label>        <div class="row-cell">            <input id="abbr" name="abbr" class="form-control" ng-model="membershipType.abbr"                   style="width:100px;display:inline-block;vertical-align:middle"                   ng-disabled="isBrowse" ng-change="trimAbbr()" ng-trim="false"                   maxlength="3" placeholder="最多3个字" type="text" />            <span class="patient-membership-tag" ng-if="membershipType.abbr"                  style="display:inline-block;vertical-align:middle;line-height:32px;">                <span class="membership-tag-icon"></span>                <span class="membership-tag-text">{{ membershipType.abbr }}</span>            </span>            <p class="help-block ">缩写名称用于在患者会员图标显示</p>        </div>    </div>    <div class="form-group row" ng-show="showMembershipLevel">        <label for="isLevel" class="control-label">会员等级</label>        <div class="row-cell">            <input type="checkbox" id="isLevel" name="isLevel"                   class="enyo-checkbox-switcher"                   ng-disabled="isBrowse"                   ng-model="membershipType.hasLevel" />            <label class="enyo-checkbox-switcher-label" for="isLevel">                {{ membershipType.hasLevel?\'启动\':\'不启动\' }}            </label>        </div>        <div class="row-cell" style="margin-left:30px;">            <label class="control-label">启动后该会员卡为等级会员卡</label>        </div>    </div></div>');templateCache.put('/app/gift/components/membership-type-edit-gift/membership-type-edit-gift-view.html','<div id="membership-type-edit-gift-wrap" class="enyo">    <style>        .enyo .enyo-panel {            margin-bottom: 20px;            background-color: #fff;        }            .enyo .enyo-panel > .panel-heading {                font-size: 13px;                color: #575d6a;                text-align: left;                background: #e0faff;                height: 32px;                border-bottom: 1px solid #cfdbdd;                border-top: 1px solid #cfdbdd;                padding: 0;                line-height: 32px;                padding-left: 15px;            }            .enyo .enyo-panel > .panel-body {                margin: 0;                padding: 0;            }            .enyo .enyo-panel.panel-collapse > .panel-heading {            }        #membership-type-edit-gift-wrap {            font-size: 13px;        }            #membership-type-edit-gift-wrap .enyo-panel .control-label {                vertical-align: middle;            }            #membership-type-edit-gift-wrap table.enyo-table-secondary {                table-layout: fixed;            }                #membership-type-edit-gift-wrap table.enyo-table-secondary td {                    height: 40px;                }                #membership-type-edit-gift-wrap table.enyo-table-secondary .name-cell {                    min-width: 160px;                }                #membership-type-edit-gift-wrap table.enyo-table-secondary .action-cell {                    width: 70px;                }                #membership-type-edit-gift-wrap table.enyo-table-secondary .input-cell {                    width: 120px;                }                #membership-type-edit-gift-wrap table.enyo-table-secondary .price-cell {                    width: 100px;                }                #membership-type-edit-gift-wrap table.enyo-table-secondary .dropdown-cell {                    width: 150px;                }    </style>    <div class="enyo-panel">        <div class="panel-heading">            折扣方案        </div>        <div class="panel-body">            <div class="row" style="padding-left:15px;margin-top:10px;">                <div class="row-cell">                    <input type="radio" class="enyo-radio" id="order-discount-type"                           ng-disabled="isBrowse"                           value="order" ng-model="membershipType.discountPlan.discountType">                    <label class="enyo-radio-label" for="order-discount-type">整单折扣</label>                </div>                <div class="row-cell " style="margin-left:15px;">                    <ares-numeric-input min="0" max="1" decimal="2"                                        class="ares-numeric-max" step="0.1"                                        value="membershipType.discountPlan.discount"                                        disabled="membershipType.discountPlan.discountType != \'order\' || isBrowse"                                        input-width="60px"></ares-numeric-input>                </div>                <label class="control-label">请输入0到1之间的小数，如1代表不打折，0.5表示5折,0.85代表85折</label>            </div>            <div class="row">                <div class="row-cell" style="padding-left:15px;">                    <input type="radio" class="enyo-radio" id="handle-discount-types"                           ng-disabled="isBrowse"                           value="handle" ng-model="membershipType.discountPlan.discountType">                    <label class="enyo-radio-label" for="handle-discount-types">按处置打折(只对明细、处置、跨科的子项目)</label>                </div>                <div class="row-cell" ng-show="membershipType.discountPlan.discountType == \'handle\'&& !isBrowse">                    <a style="color: #00a8cb;line-height: 32px;margin-left:15px;"                       ng-click="addDiscountDetail()">                        <i class="iconfont icon-jinakangbaoicons19"></i>                        添加处置                    </a>                </div>            </div>            <div class="row" style="margin-top:10px;">                <table class="enyo-table-secondary">                    <thead>                        <tr>                            <th class="text-left name-cell">名称</th>                            <th class="text-left action-cell">类型</th>                            <th class="text-left price-cell">原价</th>                            <th class="text-left price-cell">折扣</th>                            <th class="text-left input-cell">折后价</th>                            <th class="text-left price-cell">数量</th>                            <th class="text-left price-cell">频率</th>                            <th class="text-left action-cell">操作</th>                        </tr>                    </thead>                    <tbody>                        <tr ng-repeat="detailPlan in membershipType.discountPlan.discountPlanDetailList">                            <td ng-class="$index==0? \'default-discount\':\'\'" class="name-cell">{{detailPlan.itemName}}</td>                            <td ng-class="$index==0? \'default-discount\':\'\'" class="action-cell">{{detailPlan.detailType|toDiscountHandleType}}</td>                            <td class="price-cell">                                <span ng-hide="detailPlan.detailType!=\'item\'">{{detailPlan.price|toMoney}}</span>                            </td>                            <td ng-class="$index==0? \'default-discount\':\'\'" class="price-cell">                                <ares-numeric-input min="0" max="1" decimal="2"                                                    disabled="membershipType.discountPlan.discountType!=\'handle\'|| isBrowse"                                                    on-change="onChangeDiscountPlanDiscount(detailPlan)"                                                    value="detailPlan.discount" step="0.1"                                                    input-width="40px"></ares-numeric-input>                            </td>                            <td class="input-cell">                                <ares-numeric-input min="0" max="detailPlan.price" decimal="2"                                                    disabled="membershipType.discountPlan.discountType!=\'handle\'|| isBrowse"                                                    value="detailPlan.afterDiscountPrice"                                                    emtpy-enable="true"                                                    on-change="onChangeDiscountPlanAfterDiscountPrice(detailPlan)"                                                    ng-hide="detailPlan.detailType!=\'item\'"                                                    input-width="60px"></ares-numeric-input>                            </td>                            <td class="price-cell">                                <ares-numeric-input min="-1" max="999" decimal="0"                                                    ng-hide="detailPlan.detailType!=\'item\'"                                                    disabled="membershipType.discountPlan.discountType!=\'handle\'|| isBrowse"                                                    value="detailPlan.maxCount"                                                    input-width="40px"></ares-numeric-input>                            </td>                            <td class="price-cell">                                <select id="detailPlanFrequency"                                        kendo-drop-down-list ng-model="detailPlan.planFrequency"                                        ng-hide="detailPlan.detailType!=\'item\'"                                        ng-disabled="membershipType.discountPlan.discountType!=\'handle\'|| isBrowse"                                        style="width:80px">                                    <option value="0">每年</option>                                    <option value="1">总计</option>                                </select>                            </td>                            <td class="action-cell">                                <button class="btn icon-btn btn-light-yellow btn-xs"                                        ng-click="deleteDiscountDetail($index)"                                        ng-show="detailPlan.detailType!=\'default\' && !isBrowse && membershipType.discountPlan.discountType == \'handle\'">                                    <i class="iconfont icon-shanchu"></i>                                </button>                            </td>                        </tr>                    </tbody>                </table>            </div>        </div>    </div>    <div class="enyo-panel">        <div class="panel-heading">            <span ng-click="toggleContent(\'isShowGiftItemPlan\')" class="sp">                回馈方案<i ng-class="{\'iconfont icon-shang\': isShowGiftItemPlan, \'iconfont icon-xia1\': !isShowGiftItemPlan }"></i>            </span>        </div>        <div class="panel-body" ng-show="isShowGiftItemPlan">            <div class="row" style="padding-left:15px;margin-top:10px;">                <label class="control-label">赠送频率：-1代表无限次，2代表2次</label>                <div class="row-cell">                    <a style="color: #00a8cb;line-height: 32px;margin-left:15px;"                       ares-hide="::isBrowse"                       ng-click="addGiftPlan()">                        <i class="iconfont icon-jinakangbaoicons19"></i>                        添加处置                    </a>                </div>            </div>            <div class="row" style="margin-top:10px;">                <table class="enyo-table-secondary">                    <thead>                        <tr>                            <th class="text-left name-cell">名称</th>                            <th class="text-left input-cell">赠送次数</th>                            <th class="text-left dropdown-cell">频率</th>                            <th class="text-left dropdown-cell">限制</th>                            <th class="text-left action-cell">操作</th>                        </tr>                    </thead>                    <tbody>                        <tr ng-repeat="giftPlan in membershipType.giftPlanList">                            <td class="name-cell">{{giftPlan.itemName}}</td>                            <td class="input-cell">                                <ares-numeric-input min="-1" max="99999" decimal="0"                                                    value="giftPlan.maxCount" step="1"                                                    disabled="isBrowse"                                                    input-width="40px"></ares-numeric-input>                            </td>                            <td class="dropdown-cell">                                <select id="freq" kendo-drop-down-list ng-model="giftPlan.planFrequency"                                        ng-disabled="isBrowse" style="width:90px">                                    <option>每年</option>                                    <option>总计</option>                                </select>                            </td>                            <td class="dropdown-cell">                                <select id="limit" kendo-drop-down-list ng-model="giftPlan.planScope"                                        ng-disabled="isBrowse" style="width:120px">                                    <option>仅持卡人</option>                                    <option>所有人</option>                                </select>                            </td>                            <td class="action-cell">                                <button class="btn icon-btn btn-light-yellow btn-xs"                                        ares-hide="::isBrowse"                                        ng-click="deleteGiftPlan($index)">                                    <i class="iconfont icon-shanchu"></i>                                </button>                            </td>                        </tr>                    </tbody>                </table>            </div>        </div>    </div>    <div class="enyo-panel">        <div class="panel-heading">            <span ng-click="toggleContent(\'isShowRechargePlan\')" class="sp">                充值方案<i ng-class="{\'iconfont icon-shang\': isShowRechargePlan, \'iconfont icon-xia1\': !isShowRechargePlan }"></i>            </span>        </div>        <div class="panel-body" ng-show="isShowRechargePlan">            <div class="row" style="margin-top:10px;">                <a style="color: #00a8cb;line-height: 32px;margin-left:15px;"                   ng-click="addRechargePlan()" ares-hide="::isBrowse">                    <i class="iconfont icon-jinakangbaoicons19"></i>                    添加充值方案                </a>            </div>            <div ng-repeat="item in membershipType.rechargePlanList" class="row" style="margin:10px 0 0 15px;">                <label class="control-label">充值金额满：</label>                <div class="row-cell">                    <ares-numeric-input min="0" max="999999" decimal="2"                                        class="ares-numeric-max"                                        value="item.rechargePrice" step="10"                                        disabled="isBrowse"                                        input-width="70px"></ares-numeric-input>                </div>                <label class="control-label">赠送金额：</label>                <div class="row-cell">                    <ares-numeric-input min="0" max="999999" decimal="2"                                        class="ares-numeric-max"                                        disabled="isBrowse"                                        value="item.giftPrice" step="10"                                        input-width="70px"></ares-numeric-input>                </div>                <div class="row-cell" style="margin-left:15px;">                    <button class="btn icon-btn btn-light-yellow btn-xs"                            ares-hide="::isBrowse"                            ng-click="deleteRechargePlan($index)">                        <i class="iconfont icon-shanchu"></i>                    </button>                </div>            </div>        </div>    </div>    <div class="enyo-panel">        <div class="panel-heading">            <span ng-click="toggleContent(\'isShowPointRatioPlan\')" class="sp">                积分方案<i ng-class="{\'iconfont icon-shang\': isShowPointRatioPlan, \'iconfont icon-xia1\': !isShowPointRatioPlan }"></i>            </span>        </div>        <div class="panel-body" ng-show="isShowPointRatioPlan">            <div class="row" style="padding-left:15px; margin-top:10px;">                <label class="control-label">本级别会员能够获得积分倍数：</label>                <div class="row-cell">                    <ares-numeric-input min="1" max="100" decimal="2"                                        class="ares-numeric-max" step="0.1"                                        value="membershipType.pointRatio"                                        disabled="isBrowse"                                        input-width="50px"></ares-numeric-input>                </div>            </div>        </div>    </div>    <div class="enyo-panel">        <div class="panel-heading">            <span ng-click="toggleContent(\'isShowGiftCertificatePackagePlan\')" class="sp">                开卡礼包<i ng-class="{\'iconfont icon-shang\': isShowGiftCertificatePackagePlan, \'iconfont icon-xia1\': !isShowGiftCertificatePackagePlan }"></i>            </span>        </div>        <div class="panel-body" ng-show="isShowGiftCertificatePackagePlan">            <div class="row" style="margin-top:10px;">                <a style="color: #00a8cb;line-height: 32px;margin-left:15px;"                   ng-click="addGiftCertificatePackagePlan()" ares-hide="::isBrowse">                    <i class="iconfont icon-jinakangbaoicons19"></i>                    添加礼包卡券                </a>            </div>            <div class="row" style="margin-top:10px;">                <table class="enyo-table-secondary">                    <thead>                        <tr>                            <th class="text-left name-cell">卡券名称</th>                            <th class="text-left input-cell">绑定数量</th>                            <th class="text-left price-cell">总量</th>                            <th class="text-left price-cell">已领用</th>                            <th class="text-left action-cell">操作</th>                        </tr>                    </thead>                    <tbody>                        <tr ng-repeat="giftCertificate in membershipType.giftCertificatePackagePlan.giftCertificatePackagePlanDetailList">                            <td class="name-cell">{{giftCertificate.giftCertificate.certificateName}}</td>                            <td class="input-cell">                                <ares-numeric-input min="1" max="10000" decimal="0"                                                    value="giftCertificate.count" step="1"                                                    on-change="onChangePackagePlanCount(giftCertificate)"                                                    disabled="isBrowse"                                                    input-width="40px"></ares-numeric-input>                            </td>                            <td class="price-cell">{{giftCertificate.giftCertificate.count}}</td>                            <td class="price-cell">{{giftCertificate.giftCertificate.drawCount}}</td>                            <td class="action-cell">                                <button class="btn icon-btn btn-light-yellow btn-xs"                                        ares-hide="::isBrowse"                                        ng-click="deleteGiftCertificatePackagePlanDetail($index)">                                    <i class="iconfont icon-shanchu"></i>                                </button>                            </td>                        </tr>                    </tbody>                </table>            </div>        </div>    </div></div>');templateCache.put('/app/gift/components/membership-type-edit-level/membership-type-edit-level-view.html','<div id="membership-type-edit-level-wrap" class="enyo">    <style>        #membership-type-edit-level-wrap {            padding: 5px 0;            height: 100%;        }            #membership-type-edit-level-wrap .control-label {                min-width: 100px;            }            #membership-type-edit-level-wrap .membership-type-rule-cond-field-wrap {                margin-bottom: 5px;            }                #membership-type-edit-level-wrap .membership-type-rule-cond-field-wrap .first-cond-field .help-block {                    margin: 5px;                    margin-left: 72px;                }                #membership-type-edit-level-wrap .membership-type-rule-cond-field-wrap .first-cond-field,                #membership-type-edit-level-wrap .membership-type-rule-cond-field-wrap .second-cond-field {                    min-height: 52px;                    padding: 10px 0;                }                #membership-type-edit-level-wrap .membership-type-rule-cond-field-wrap .second-cond-field {                    padding-left: 10px;                    padding-right: 10px;                    background-color: #f3f7f7;                }    </style>    <div class="form-group row membership-type-rule-cond-field-wrap">        <div class="row-cell first-cond-field">            <label class="control-label">消费金额：</label>            <label class="row-cell">总和大于等于</label>            <div class="row-cell">                <ares-numeric-input min="0" max="99999999" decimal="2" class="ares-numeric-max"                                    value="firstCondField.benchmark" hide-btn="true"                                    disabled="isBrowse"                                    input-width="110px"></ares-numeric-input>            </div>            <span class="row-cell">元</span>            <div class="row-cell" ng-hide="hasSecondCondField || isBrowse">                <a style="color: #00a8cb;line-height: 32px;margin-left:15px;"                   ng-click="addSecondCondField()">                    <i class="iconfont icon-jinakangbaoicons19"></i>                    添加条件                </a>            </div>        </div>        <div class="row-cell second-cond-field" ng-show="hasSecondCondField ">            <select id="condGroupConnector" kendo-drop-down-list class="row-cell"                    ng-disabled="isBrowse"                    ng-model="condGroupConnector" style="width:70px">                <option value="0">或</option>                <option value="1">且</option>            </select>            <select id="secondCondFieldCode" kendo-drop-down-list class="row-cell"                    ng-disabled="isBrowse"                    ng-model="secondCondField.fieldCode" style="width:100px">                <option value="MemebershipType_PayAmount">一次</option>                <option value="MemebershipType_DayPayAmount">一天内</option>                <option value="MemebershipType_MonthPayAmount">一个月内</option>                <option value="MemebershipType_YearPayAmount">一年内</option>            </select>            <span class="row-cell">总和大于等于</span>            <ares-numeric-input min="0" max="99999999" decimal="2" class="ares-numeric-max"                                value="secondCondField.benchmark" hide-btn="true"                                disabled="isBrowse" on-change="changedSecondCondFieldBenchmark()"                                input-width="110px"></ares-numeric-input>            <span class="row-cell">元</span>            <a class="row-cell" ng-show="!isBrowse"               style="color: #00a8cb;line-height: 32px;margin-left:10px;"               ng-click="removeSecondCondField()">删除</a>        </div>    </div>    <div class="form-group row">        <label class="control-label">注：</label>        <div class="row-cell">消费金额为计入现金流部分</div>    </div>    <div class="form-group row">        <label class="control-label">是否允许降级：</label>        <div class="row-cell">            <input type="checkbox" id="allowDowngrade" class="enyo-checkbox-switcher"                   ng-disabled="isBrowse"                   ng-model="upgradeRule.extraData.isDowngradeEnabled" />            <label class="enyo-checkbox-switcher-label" for="allowDowngrade">                {{ upgradeRule.extraData.isDowngradeEnabled?"允许":"不允许" }}            </label>        </div>        <label class="control-label">            （消费金额总和：小于{{ firstCondField.benchmark }}元)        </label>    </div>    <div class="form-group row" style="display:none;">        <label class="control-label">权益规则：</label>        <div class="row-cell">            <table class="downgrade-clawback-interests enyo-table-primary"                   style="width:480px;">                <thead>                    <tr>                        <th style="width:50%;">权益类型</th>                        <th style="width:50%;">规则</th>                    </tr>                </thead>                <tbody>                    <tr>                        <td style="width:50%;">积分方案</td>                        <td style="width:50%;">                            <input type="checkbox" class="enyo-checkbox" id="isClawbackPointEnabled"                                   ng-disabled="isBrowse"                                   ng-model="upgradeRule.extraData.isClawbackPointEnabled">                            <label class="enyo-checkbox-label" for="isClawbackPointEnabled">追回等级间的积分差值</label>                        </td>                    </tr>                </tbody>            </table>        </div>    </div></div>');templateCache.put('/app/gift/components/patient-advance-payment-base-info/patient-advance-payment-base-info-view.html','<div id="advance-payment-base-info-wrap">    <style>        #advance-payment-base-info-wrap {            border-bottom: 1px solid #e3e3e3;            padding-bottom: 10px;            margin-top: -10px;        }            #advance-payment-base-info-wrap .notes-title {                font-size: 14px;                font-weight: 400;                display: inline-block;                vertical-align: middle;                width: 70px;                height: 34px;                line-height: 34px;                color: #666a73;                margin: 0;            }            #advance-payment-base-info-wrap .notes-value {                font-size: 14px;                display: inline-block;                vertical-align: middle;                line-height: 34px;                color: #3d3d3d;                font-weight: bold;                margin: 0;                min-width:400px;            }            #advance-payment-base-info-wrap .notes-value-detail {                font-size: 14px;                display: inline-block;                vertical-align: middle;                line-height: 34px;                color: #3d3d3d;                font-weight: bold;                margin: 0;            }                #advance-payment-base-info-wrap .notes-value.show-major {                    font-size: 16px;                    line-height: 44px;                }    </style>    <table style="width:100%">        <tr>            <td colspan="2">                <label class="notes-title">持卡人：</label>                <label class="notes-value show-major">                    {{patientName }}                    <span style="border: none;" class="badge patient-indicator patient-indicator-membership mini_card"                          title="会员" ng-if="patient.membershipId && !patient.membershipTypeAbbr"                          ng-class="{\'patient-indicator-membership-expired\':patient.extension.isMembershipExpired,\'patient-indicator-membership\':!patient.extension.isMembershipExpired}">                        会                    </span>                    <span class="patient-membership-tag" style="border: none;display:inline-block;vertical-align:middle;"                          ng-if="patient.membershipId && patient.membershipTypeAbbr && !patient.isShared"                          ng-class="{\'patient-indicator-membership-expired\':patient.extension.isMembershipExpired}">                        <span class="membership-tag-icon"></span>                        <span class="membership-tag-text">{{ patient.membershipTypeAbbr }}</span>                    </span>                </label>            </td>        </tr>        <tr>            <td>                <label class="notes-title">当前余额：</label>                <label class="notes-value-detail" ng-if="!depositBalance">{{ principalBalance | toMoney }}</label>                <label class="notes-value-detail" ng-if="depositBalance>0">{{ principalBalance + depositBalance | toMoney }}</label>                <label class="notes-value-detail" ng-if="depositBalance>0">（本金:</label>                <label class="notes-value-detail" ng-if="depositBalance>0">{{ principalBalance | toMoney }}</label>                <label class="notes-value-detail" ng-if="depositBalance>0">&nbsp;冻结:</label>                <label class="notes-value-detail" ng-if="depositBalance>0">{{ depositBalance | toMoney }}</label>                <label class="notes-value-detail" ng-if="depositBalance>0">）</label>            </td>        </tr>        <tr>            <td>                <label class="notes-title">馈赠金：</label>                <label class="notes-value">{{ presentPrice|toMoney }}</label>            </td>        </tr>    </table></div>');templateCache.put('/app/gift/components/patient-advance-payment-block/patient-advance-payment-block-view.html','<div class="panel panel-default" ares-authorize="patientMembership.advancePayment">    <style>        #advance-payment-info .panel-body {            height: 140px;        }            #advance-payment-info .panel-body .workflow-apply-box {                height: 30px;                width: 100%;                background: #ffda9c;                padding: 0 10px;                box-sizing: border-box;            }            #advance-payment-info .panel-body .workflow-apply-info {                font-size: 14px;                line-height: 30px;            }            #advance-payment-info .panel-body .workflow-apply-clear {                float: right;                font-size: 14px;                line-height: 30px;                cursor: pointer;            }        #advance-payment-info .btn.btn-disable {            border-color: #9397A2;            color: #9397A2;            cursor: pointer;        }    </style>    <div class="panel-heading">        <div class="pull-left panel-heading-description">            <span class="panel-heading-title">储值卡</span>            <span class="icon-description icon-password"                  ng-show="advancePayment.cardCode"                  data-toggle="tooltip" data-placement="top" data-original-title="密码保护"></span>            <span class="icon-description icon-shared"                  ng-show="isShared()"                  data-toggle="tooltip" data-placement="top" data-original-title="共享自{{ membership.patientName }}"></span>        </div>        <div class="pull-right panel-heading-action">            <button class="btn btn-primary" ng-if="!isShared() && isAuthorized() &&!advancePayment.workflowApply" ng-click="businessAction()">交易</button>            <button class="btn btn-primary btn-disable" ng-if="advancePayment.workflowApply" disabled>交易审批中</button>            <button class="btn btn-primary" ng-click="showTransactionHisotry() && !isShared()">交易记录</button>            <button class="btn btn-primary" ng-if="!isShared() && isAuthorized()" ng-click="modifyPassword()">密码</button>        </div>    </div>    <div class="panel-body">        <div class="workflow-apply-box" ng-show="advancePayment.workflowApply">            <span class="workflow-apply-info"> {{ getWorkflowDescription() }} </span>            <a class="workflow-apply-clear" ng-show="!isShared()"               ng-click="cancelWorkflowApply()" href="javascript:void(0);">撤销申请</a>        </div>        <table style="width:100%;">            <tr>                <td colspan="2">                    <label class="notes-title show-major" ng-style="{\'line-height\':advancePayment.workflowApply?\'30px\':\'50px\'}  ">储值卡金额：</label>                    <label class="notes-value show-major plus-size">{{ (advancePayment.balance+advancePayment.presentPrice+advancePayment.deposit)|toMoney }}</label>                    <label class="notes-value show-major " ng-show="advancePayment.deposit&&advancePayment.deposit>0">                        &nbsp;(可用:{{(advancePayment.balance+advancePayment.presentPrice)|toMoney}} 冻结:{{advancePayment.deposit|toMoney}})                    </label>                </td>            </tr>            <tr>                <td>                    <label class="notes-title show-minor">本金余额：</label>                    <label class="notes-value show-major">{{ advancePayment.balance|toMoney }}</label>                </td>                <td>                    <label class="notes-title show-minor">馈赠金余额：</label>                    <label class="notes-value show-minor">{{ advancePayment.presentPrice|toMoney }}</label>                </td>            </tr>            <tr>                <td>                    <label class="notes-title show-minor">累计充值：</label>                    <label class="notes-value show-major">{{ advancePayment.recharge|toMoney }}</label>                </td>                <td>                    <label class="notes-title show-minor">累计消费：</label>                    <label class="notes-value show-minor">{{ advancePayment.comsumption|toMoney }}</label>                </td>            </tr>        </table>    </div></div>');templateCache.put('/app/gift/components/patient-gift-certificates-block/patient-gift-certificates-block-view.html','<div class="panel panel-default" id="patient-gift-certificates-block" ares-authorize="patientMembership.giftCard">    <style>        #patient-gift-certificates-block .gift-certificates-nav {            position: relative;        }        #patient-gift-certificates-block .single-line-text {            width: 100%;            display: block;            overflow: hidden;            text-overflow: ellipsis;            white-space: nowrap;            text-align: left;        }        #patient-gift-certificates-block .gift-certificates-nav ul {            border-bottom: 1px solid #e3e3e3;            padding: 16px 0;        }            #patient-gift-certificates-block .gift-certificates-nav ul li {                display: inline;                font-size: 14px;                color: #666a73;                padding: 15px;                margin: 10px;            }                #patient-gift-certificates-block .gift-certificates-nav ul li.active,                #patient-gift-certificates-block .gift-certificates-nav ul li:hover {                    color: #00a8cb;                    cursor: pointer;                    border-bottom: 3px solid #00a8cb;                }                #patient-gift-certificates-block .gift-certificates-nav ul li[disabled=\'disabled\'],                #patient-gift-certificates-block .gift-certificates-nav ul li[disabled=\'disabled\']:hover {                    cursor: default;                    border-bottom: none;                    color: #d3d3d3;                    pointer-events: none;                }        #patient-gift-certificates-block .gift-certificates-list {            position: relative;            vertical-align: middle;        }            #patient-gift-certificates-block .gift-certificates-list .is-finish .gift-certificate-item {                background-size: 100px;                background-repeat: no-repeat;                background-origin: content-box;                background-image: url(/app-resource/images/gift-certificate-finish.png);            }            #patient-gift-certificates-block .gift-certificates-list .is-expired .gift-certificate-item {                background-size: 100px;                background-repeat: no-repeat;                background-origin: content-box;                background-image: url(/app-resource/images/gift-certificate-expired.png);            }            #patient-gift-certificates-block .gift-certificates-list.active {                display: block;            }            #patient-gift-certificates-block .gift-certificates-list ul {                padding-top: 16px;                font-size: 0;            }                #patient-gift-certificates-block .gift-certificates-list ul li {                    display: inline-block;                    margin: 10px;                    background-image: url(/app-resource/images/bg-tickets.png);                    background-position: 160px 0px;                    background-size: 326px 85px;                    width: 160px;                    height: 85px;                    font-size: 14px;                }                    #patient-gift-certificates-block .gift-certificates-list ul li:not(.is-finish):not(.is-expired):hover {                        background-position: 0 0;                    }                    #patient-gift-certificates-block .gift-certificates-list ul li .gift-certificate-item {                        margin: 0 20px;                        padding: 5px 8px;                        height: 74px;                    }                        #patient-gift-certificates-block .gift-certificates-list ul li .gift-certificate-item .gift-certificate-item-name {                            height: 55px;                            text-align: center;                        }                        #patient-gift-certificates-block .gift-certificates-list ul li .gift-certificate-item .gift-certificate-item-action {                            height: 20px;                            text-align: center;                        }                            #patient-gift-certificates-block .gift-certificates-list ul li .gift-certificate-item .gift-certificate-item-action .gift-font {                                display: inline-block;                                vertical-align: top;                                width: 14px;                                height: 14px;                                font-size: 14px;                                cursor: pointer;                            }                                #patient-gift-certificates-block .gift-certificates-list ul li .gift-certificate-item .gift-certificate-item-action .gift-font:hover {                                    color: #319db5;                                }                            #patient-gift-certificates-block .gift-certificates-list ul li .gift-certificate-item .gift-certificate-item-action .gift-icon {                                display: inline-block;                                vertical-align: top;                                background-image: url(\'/app-resource/images/icon-tickets.png\');                                background-size: 43px 56px;                                background-position-x: -1px;                                width: 14px;                                height: 14px;                                margin: 1px 0;                            }                                #patient-gift-certificates-block .gift-certificates-list ul li .gift-certificate-item .gift-certificate-item-action .gift-icon:hover {                                    cursor: pointer;                                    background-position-x: -15px;                                }                                #patient-gift-certificates-block .gift-certificates-list ul li .gift-certificate-item .gift-certificate-item-action .gift-icon.share {                                    background-position-y: 0;                                }                                #patient-gift-certificates-block .gift-certificates-list ul li .gift-certificate-item .gift-certificate-item-action .gift-icon.delete {                                    background-position-y: -14px;                                }                                #patient-gift-certificates-block .gift-certificates-list ul li .gift-certificate-item .gift-certificate-item-action .gift-icon.info {                                    background-position-y: -28px;                                }    </style>    <div class="panel-heading">        <div class="pull-left">            <span class="panel-heading-title">优惠券</span>            <span>&nbsp;&nbsp;({{giftCertificateCountSummary.enableCount}}/{{giftCertificateCountSummary.totalCount}})</span>        </div>    </div>    <div class="panel-body">        <div class="gift-certificates-nav">            <ul>                <li ng-repeat="tab in giftCertificatesTabs"                    ng-if="isShowTab(tab)"                    ng-class="tab.active? \'active\':\'\'"                    ng-click="switchTab($index)">                    {{tab.name}}({{tab.countSummary.enableCount}}/{{tab.countSummary.totalCount}})                </li>            </ul>        </div>        <div id="giftCertificates-list-wraps" class="gift-certificates-list" style="height:150px;">            <ul>                <li ng-repeat="giftCer in currentTypeGiftCertificates"                     ng-class="getUnEnableClassName(giftCer)">                    <div class="gift-certificate-item">                        <div class="gift-certificate-item-name">                            <span title="{{ giftCer.certificateName }}" class="single-line-text">                                {{ giftCer.certificateName }}                            </span>                            <span title="{{ giftCer.cardNo }}" class="single-line-text">                                卡号:{{ giftCer.cardNo }}                            </span>                            <span title="{{ giftCer.sellingPrice }}" class="single-line-text">                                售价:{{ giftCer.sellingPrice }}                            </span>                        </div>                        <div class="gift-certificate-item-action">                            <span class="gift-icon share" style="margin-right:10px"                                  title="共享自：{{giftCer.patientName}}"                                  ng-show="isGiftCertificateSharing(giftCer)"></span>                            <span class="gift-icon delete" style="margin-right: 10px;"                                  title="注销"                                  ares-authorize="patientMembership.deleteGiftCard"                                  ng-click="onDeleteGiftCertificate(giftCer)"                                  ng-hide="isGiftCertificateSharing(giftCer) || !isGiftCertificateEnable(giftCer) || isApptApplyGiftCertificate(giftCer)"></span>                            <span class="gift-icon info" ng-click="viewGiftCertificateInfo(giftCer)"                                  title="查看" style="margin-right: 10px;"></span>                            <span class="gift-font glyphicon glyphicon-align-justify" title="使用记录"                                  ng-click="giftCertificateUsedDetail(giftCer)">                            </span>                        </div>                    </div>                </li>            </ul>        </div>    </div></div>');templateCache.put('/app/gift/components/patient-membership-card-block/patient-membership-card-block-view.html','<div class="panel panel-default" id="membership-card-base-info-block" ares-authorize="patientMembership.membershipCard">    <style>        #membership-card-base-info-block .panel-body {            padding: 0;        }        #membership-card-base-info-block .panel-split-line {            width: 1px;            height: 100%;            display: inline-block;            vertical-align: top;        }        #membership-card-base-info-block #membership-card-base-info-wrap {            width: 300px;            box-sizing: border-box;            padding: 20px;            vertical-align: top;            border-right: 1px solid #e3e3e3;        }            #membership-card-base-info-block #membership-card-base-info-wrap .membership-card-base-info {                background-image: linear-gradient(-187deg, #0d98c9 0%, #005387 100%);                box-shadow: 2px 2px 2px 0 #e3e3e3;                border-radius: 14px;                width: 260px;                height: 160px;                color: #fff;                padding: 15px;                box-sizing: border-box;            }            #membership-card-base-info-block #membership-card-base-info-wrap .membership-card-base-plan-info {                padding: 15px 15px 0 15px;                box-sizing: border-box;            }        #membership-card-base-info-block .membership-card-base-plan-info .info-item-row .info-item-row-title {            vertical-align: top;            line-height: 20px;            color: #666a73;        }        #membership-card-base-info-block .membership-card-base-plan-info .info-item-row .info-item-row-content {            vertical-align: top;            line-height: 20px;            color: #3d3d3d;            margin: 0;        }        #membership-card-base-info-block .info-item-row {            font-size: 0;            width: 230px;        }            #membership-card-base-info-block .info-item-row .info-item-row-title {                font-size: 14px;                display: inline-block;                vertical-align: middle;                width: 70px;                height: 24px;                line-height: 24px;            }                #membership-card-base-info-block .info-item-row .info-item-row-title.mini-size {                    width: 45px;                }            #membership-card-base-info-block .info-item-row .info-item-row-content {                width: 160px;                font-size: 14px;                display: inline-block;                vertical-align: middle;                line-height: 24px;            }            #membership-card-base-info-block .info-item-row span.info-item-row-content {                height: 24px;                overflow: hidden;                text-overflow: ellipsis;                white-space: nowrap;            }                #membership-card-base-info-block .info-item-row span.info-item-row-content.plus-size {                    width: 155px;                    font-size: 18px;                    height: 34px;                    line-height: 34px;                }            #membership-card-base-info-block .info-item-row .info-item-row-icon {                vertical-align: middle;                font-size: 17px;                color: #fff;            }        #membership-card-base-info-block #membership-card-plan-status-wrap {            width: 100%;            box-sizing: border-box;            font-size: 14px;            vertical-align: top;            padding: 20px;        }        #no-membership-description {            text-align: center;            line-height: 140px;        }            #no-membership-description h2 {                font-size: 20px;                color: #3d3d3d;                width: 180px;                text-align: center;                font-weight: bold;                display: inline-block;                vertical-align: middle;                margin: 0;            }            #no-membership-description .btn-primary {                display: inline-block;                vertical-align: middle;                background: #ffffff;                border: 1px solid #00a8cb;                color: #00a8cb;            }        #membership-card-base-info-wrap .sub-panel-heading .membership-card-timeout-description {            background: #f6a623;            border-radius: 4px;            color: #fff;            height: 28px;            display: block;            line-height: 28px;            margin-top: 8px;            width: 60px;            text-align: center;        }        #membership-card-base-info-wrap .info-item-row .membership-experiod {            color: #f6a623;        }        #membership-card-base-info-wrap .info-item-row .membership-common {            color: white;        }    </style>    <div class="panel-heading">        <div class="pull-left panel-heading-description">            <span class="panel-heading-title">会员卡</span>            <span class="icon-description icon-password" ng-show="membership.isCheckDiscount || membership.isCheckPayment"                  data-toggle="tooltip" data-placement="top" data-original-title="卡号确认保护"></span>            <span class="icon-description icon-shared" ng-show="isShared"                  data-toggle="tooltip" data-placement="top" data-original-title="共享自{{ membership.patientName }}"></span>        </div>        <div class="pull-right panel-heading-action">            <!--<button class="btn btn-primary" ng-if="membership&&!isShared" ng-click="printMembership()">打印</button>-->            <button class="btn btn-primary" ng-if="!isShared" ng-click="showMembershipTransaction()">变动记录</button>            <button class="btn btn-primary"                     ares-authorize="patientMembership.upgradeCard"                    ng-if="membership&&!isShared"                     ng-click="upgradeMembership()">升级会员卡            </button>            <button class="btn btn-default"                     ares-authorize="patientMembership.cancelCard"                    ng-if="membership&&!isShared"                     ng-click="cleanMembership()">注销            </button>        </div>    </div>    <div class="panel-body membership-card-info-content">        <table ng-show="membership">            <tr>                <td id="membership-card-base-info-wrap">                    <div class="sub-panel">                        <div class="sub-panel-heading">                            <div class="pull-left">                                <span class="sub-panel-heading-title">基本信息</span>                            </div>                            <div class="pull-right">                                <span class="membership-card-timeout-description" ng-show="patient.extension.isMembershipExpired">已过期</span>                            </div>                        </div>                        <div class="sub-panel-body">                            <div class="membership-card-base-info">                                <div class="info-item-row">                                    <span class="info-item-row-title mini-size">卡号：</span>                                    <span title="{{ membership.cardNumber }}" class="info-item-row-content plus-size">{{membership.cardNumber}}</span>                                    <a class="info-item-row-icon icon-description" ng-click="editMembership(\'edit\')"                                       ng-show="!isShared"                                       data-toggle="tooltip" data-placement="top" data-original-title="编辑">                                        <span class="glyphicon glyphicon-edit"></span>                                    </a>                                </div>                                <div class="info-item-row">                                    <span class="info-item-row-title">会员类型：</span>                                    <span class="info-item-row-content">{{membership.membershipTypeName}}</span>                                </div>                                <div class="info-item-row">                                    <span class="info-item-row-title">主卡人：</span>                                    <span class="info-item-row-content">{{membership.patientName}}</span>                                </div>                                <div class="info-item-row">                                    <span class="info-item-row-title">开卡时间：</span>                                    <span class="info-item-row-content">{{membership.recordCreatedTime|toDateTimeString}}</span>                                </div>                                <div class="info-item-row">                                    <span class="info-item-row-title">有效期：</span>                                    <span id="span-invalid-time" class="info-item-row-content" ng-class="{\'membership-experiod\':patient.extension.isMembershipExpired,\'membership-common\':!patient.extension.isMembershipExpired}">{{membership.vaildEndTime|date:\'yyyy-MM-dd\'}}</span>                                </div>                            </div>                            <div class="membership-card-base-plan-info">                                <div class="info-item-row">                                    <span class="info-item-row-title">实体卡：</span>                                    <p class="info-item-row-content">                                        <span ng-show="!membership.isCheckDiscount && !membership.isCheckPayment">未绑定 </span>                                        <span ng-show="membership.isCheckDiscount || membership.isCheckPayment">                                            已绑定                                            <span ng-show="membership.isCheckDiscount">，验卡打折</span>                                            <span ng-show="membership.isCheckPayment">，验卡扣减预付款</span>                                        </span>                                    </p>                                </div>                                <div class="info-item-row">                                    <span class="info-item-row-title">积分方案：</span>                                    <div class="info-item-row-content">获得 {{membershipType.pointRatio}} 倍积分</div>                                </div>                                <div class="info-item-row">                                    <div class="info-item-row-title">充值方案：</div>                                    <div class="info-item-row-content">                                        <p ng-repeat="item in membership.membershipType.rechargePlanList">                                            <span class="">充值金额满  {{item.rechargePrice}}</span>                                            <br />                                            <span class="">赠送金额  {{item.giftPrice}}</span>                                        </p>                                    </div>                                </div>                            </div>                        </div>                    </div>                </td>                <td id="membership-card-plan-status-wrap">                    <div class="sub-panel" ares-authorize="patientMembership.discountPlan">                        <div class="sub-panel-heading">                            <div class="pull-left">                                <span class="sub-panel-heading-title">折扣方案</span>                            </div>                        </div>                        <div class="sub-panel-body">                            <div id="discount-plan-detail-list" ng-show="lastDiscountPlanDetailList.length>0 && !isMemberOrder" class="ares-data-table"></div>                            <div class="info-item-row" ng-show="isMemberOrder">                                <span class="info-item-row-title" style="color: #666a73;">整单折扣：</span>                                <span class="info-item-row-content" style="color: #3d3d3d">                                    {{membershipType.discountPlan.discount}}                                </span>                            </div>                            <div></div>                        </div>                    </div>                    <div class="sub-panel" ares-authorize="patientMembership.giftPlan">                        <div class="sub-panel-heading">                            <div class="pull-left">                                <span class="sub-panel-heading-title">回馈方案</span>                            </div>                        </div>                        <div class="sub-panel-body">                            <div id="gift-plan-detail-list" class="ares-data-table"></div>                            <div></div>                        </div>                    </div>                    <div class="sub-panel" ng-show="!isShared">                        <div class="sub-panel-heading">                            <div class="pull-left">                                <span class="sub-panel-heading-title">共享人信息</span>                            </div>                            <div class="pull-right">                                <button class="btn btn-primary" ng-click="editShare(\'add\')" ares-authorize="patientMembership.share">添加共享人</button>                            </div>                        </div>                        <div class="sub-panel-body">                            <div id="shared-person-list" class="ares-data-table"></div>                        </div>                    </div>                </td>            </tr>        </table>        <div id="no-membership-description" ng-if="!membership">            <h2>当前患者无会员卡</h2>            <button class="btn btn-primary" ng-click="editMembership(\'create\')" sensors-enabled="true"                     sensors-event-name="PatientMembershipCardBlock" sensors-event-type="开卡"                     ares-authorize="patientMembership.openCard">开卡</button>        </div>    </div></div>');templateCache.put('/app/gift/components/patient-membership-prederential-card-block/patient-membership-prederential-card-block-view.html','<div class="patient-membership-prederential-card-block" ares-authorize="patientMembership.membershipCard">    <style scoped>        .patient-membership-prederential-card-block .panel-body {            padding:0;        }        .patient-membership-prederential-card-block .membership-prederential-card-base-info-wrap {            width:300px;            box-sizing:border-box;            padding:20px;            vertical-align:top;            border-right:1px solid #e3e3e3;        }        .patient-membership-prederential-card-block .membership-prederential-card-base-info-wrap .membership-card-base-info {            background-image:linear-gradient(-180deg,#fab061 0%,#f76b1c 100%);            box-shadow:2px 2px 2px 0 #e3e3e3;            border-radius:14px;            width:260px;            height:160px;            color:#fff;            padding:15px;            box-sizing:border-box;            position:relative;        }        .patient-membership-prederential-card-block .membership-prederential-card-base-info-wrap .membership-card-base-plan-info {            padding:10px 5px 0 5px;            box-sizing:border-box;        }        .patient-membership-prederential-card-block .membership-card-base-plan-info .info-item-row .info-item-row-title {            vertical-align:top;            line-height:20px;            color:#666a73;        }        .patient-membership-prederential-card-block .membership-card-base-plan-info .info-item-row .info-item-row-content {            vertical-align:top;            line-height:20px;            color:#575d6a;            margin:0;        }        .patient-membership-prederential-card-block .info-item-row {            font-size:0;            width:230px;            margin-bottom:10px;        }        .patient-membership-prederential-card-block .info-item-row .info-item-row-title {            font-size:14px;            display:inline-block;            vertical-align:middle;            width:75px;            height:24px;            line-height:24px;            text-align:right;        }        .patient-membership-prederential-card-block .info-item-row .info-item-row-title.mini-size {            width:45px;        }        .patient-membership-prederential-card-block .info-item-row .info-item-row-content {            width:auto;            max-width:150px;            font-size:14px;            margin-left:5px;            display:inline-block;            vertical-align:middle;            line-height:24px;        }        .patient-membership-prederential-card-block .info-item-row .info-item-row-content.describe{            height: 158px;            display: -webkit-box;            -webkit-box-orient: vertical;            -webkit-line-clamp: 8;            overflow: hidden;            white-space: normal;            float: left;            max-width: 200px;        }        .patient-membership-prederential-card-block .info-item-row span.info-item-row-content {            height:24px;            overflow:hidden;            text-overflow:ellipsis;            white-space:nowrap;        }        .patient-membership-prederential-card-block .info-item-row span.info-item-row-content.plus-size {            width:155px;            font-size:18px;            height:34px;            line-height:34px;        }        .patient-membership-prederential-card-block .info-item-row .info-item-row-icon {            width:14px;            font-size:14px;            color:#fff;            position:absolute;            top:5px;            right:10px;            text-align:center;        }        .patient-membership-prederential-card-block .membership-prederential-card-status-wrap {            width:100%;            height:364px;            box-sizing:border-box;            font-size:14px;            vertical-align:top;            padding:20px 10px 0 20px;        }        .membership-prederential-card-base-info-wrap .sub-panel-heading .membership-card-timeout-description {            background:#f6a623;            border-radius:4px;            color:#fff;            height:28px;            display:block;            line-height:28px;            margin-top:8px;            width:60px;            text-align:center;        }        .patient-membership-prederential-card-block .sub-panel-heading-title {            color:#3a3e3f;            line-height:40px;        }        .patient-membership-prederential-card-block .font-active-color {            color:#00a6c9 !important;        }        .patient-membership-prederential-card-block .prederential-card-wrapper {            height:398px;        }        .patient-membership-prederential-card-block .browse-total-manay {            background-color:#E0FAFF;            padding:6px 0;        }        .patient-membership-prederential-card-block ul:after,.patient-membership-prederential-card-block ul:before {            clear:both;            content:"";            display:table;        }        .patient-membership-prederential-card-block ul,.patient-membership-prederential-card-block li {            margin:0;            padding:0;            list-style-type:none;        }        .patient-membership-prederential-card-block .lc-color-info,.lc-color-hover:hover {            color:#00a6c9 !important;        }        .patient-membership-prederential-card-block .browse-total-manay ul li {            float:left;            padding:0 10px;            color:#666a73;            font-size:14px;            line-height:12px;            height:12px;        }        .patient-membership-prederential-card-block .browse-total-manay ul li:last-child {            border-right:0;        }        .patient-membership-prederential-card-block .browse-total-manay ul li span {            font-size:14px;        }        .patient-membership-prederential-card-block .browse-total-manay ul li .k-checkbox-label {            line-height:12px;        }        .patient-membership-prederential-card-block .table-main {            border:none;        }        .patient-membership-prederential-card-block .table-main table {            table-layout:fixed;            word-break:break-all;        }        .patient-membership-prederential-card-block .custom-standard-data-table .table-header {            border:none;        }        .patient-membership-prederential-card-block .custom-standard-data-table .table-header table {            background:#00a6c9;        }        .patient-membership-prederential-card-block .custom-standard-data-table .table-header table tr th {            padding-left:10px;            color:#fff;            border-right:none;        }        .patient-membership-prederential-card-block .custom-standard-data-table .table-main table tr {            border:none;        }        .patient-membership-prederential-card-block .custom-standard-data-table .table-main table tr:nth-child(even) {            background:#f5f6f8;        }        .patient-membership-prederential-card-block .custom-standard-data-table .table-main table tr td {            border-right:none;            text-align:center;            padding-left:10px;            color:#575d6a;        }        .patient-membership-prederential-card-block .table-main table tr td > span {            padding:6px 0;            position:relative;        }        .patient-membership-prederential-card-block .table-main table tr td .detail-btn {            cursor:pointer;        }        .membership-prederential-card-status-wrap .mCSB_dragger_bar,.membership-prederential-card-status-wrap .mCSB_draggerRail {            width:6px !important;        }    </style>    <div class="panel panel-default prederential-card-wrapper" ng-repeat="prederentialCardItem in prederentialCardList">        <div class="panel-heading">            <div class="pull-left panel-heading-description">                <span class="panel-heading-title">优惠卡 - </span>                <span class="font-active-color" ng-bind="prederentialCardItem.certificateName"></span>            </div>          <!--   <div class="pull-right panel-heading-action">                <button class="btn btn-default">注销</button>            </div> -->        </div>        <div class="panel-body membership-card-info-content">            <table>                <tr>                    <td class="membership-prederential-card-base-info-wrap">                        <div class="sub-panel" style="margin-top: 0;">                            <div class="sub-panel-body">                                <div class="membership-card-base-info">                                    <div class="info-item-row">                                        <span class="info-item-row-title">显&nbsp;&nbsp;示&nbsp;名：</span>                                        <span title="{{::prederentialCardItem.certificateName}}" class="info-item-row-content" ng-bind="prederentialCardItem.certificateName"></span>                                        <a class="info-item-row-icon icon-description" ng-click="editMembershipPrederential(prederentialCardItem)" data-toggle="tooltip" data-placement="top" data-original-title="编辑">                                            <span class="glyphicon glyphicon-edit"></span>                                        </a>                                    </div>                                    <div class="info-item-row">                                        <span class="info-item-row-title">卡&emsp;&emsp;号：</span>                                        <span class="info-item-row-content single-line-text" ng-bind="prederentialCardItem.cardNo" title="{{prederentialCardItem.cardNo}}"></span>                                    </div>                                    <div class="info-item-row">                                        <span class="info-item-row-title">发卡时间：</span>                                        <span class="info-item-row-content" ng-bind="prederentialCardItem.validStartTime|date:\'yyyy-MM-dd\'"></span>                                    </div>                                    <div class="info-item-row">                                        <span class="info-item-row-title">有&nbsp;效&nbsp;&nbsp;期：</span>                                        <span id="span-invalid-time" class="info-item-row-content" ng-bind="prederentialCardItem.useValidEndTime || prederentialCardItem.validEndTime|date:\'yyyy-MM-dd\'"></span>                                    </div>                                </div>                                <div class="membership-card-base-plan-info">                                    <div class="info-item-row clearfix" style="width: auto;">                                        <span class="info-item-row-title" style="width: auto;float: left;">描述：</span>                                        <div class="info-item-row-content describe" ng-bind="::prederentialCardItem.describe" title="{{::prederentialCardItem.describe}}"></div>                                    </div>                                </div>                            </div>                        </div>                    </td>                    <td class="membership-prederential-card-status-wrap">                        <div class="sub-panel prederential-card-item-wrapper" style="height: 100%;">                            <div class="sub-panel-heading">                                <div>                                    <span class="sub-panel-heading-title">卡内金额</span>                                </div>                            </div>                            <div class="browse-total-manay">                                <ul>                                    <li>初始金额：<span class="lc-color-info" ng-bind="::prederentialCardItem.originalPrice|toFormatPrice"></li>                                    <li>已用金额：<span class="lc-color-info" ng-bind="(prederentialCardItem.originalPrice - prederentialCardItem.remainAmount)|toFormatPrice"></li>                                    <li>剩余金额：<span class="lc-color-info" ng-bind="::prederentialCardItem.remainAmount|toFormatPrice"></li>                                </ul>                            </div>                            <div class="sub-panel-heading">                                <div>                                    <span class="sub-panel-heading-title">优惠方案</span>                                </div>                            </div>                            <div class="sub-panel-body">                                <div class="custom-standard-data-table">                                    <div class="table-header">                                        <table>                                            <tr>                                                <th style="width:20%;text-align: left;">名称</th>                                                <th style="width:12%;">优惠类型</th>                                                <th style="width:10%;">折扣</th>                                                <th style="width:10%;">原价</th>                                                <th style="width:10%;">折后价格</th>                                                <th style="width:10%;">数量</th>                                                <th style="width:10%;">已用数</th>                                                <th style="width:10%;">剩余数</th>                                                <th style="width:8%;padding-left: 0;">操作</th>                                            </tr>                                        </table>                                    </div>                                    <div class="table-main">                                        <div class="table-main-content">                                            <table style="width:100%;">                                                <tr ng-repeat="item in prederentialCardItem.discountPlanDetailList">                                                    <td style="width:20%;text-align: left;">                                                        <span class="single-line-text" ng-bind="::item.itemName" title="{{::item.itemName}}"></span>                                                    </td>                                                    <td style="width:12%;">                                                        <span class="single-line-text" ng-bind="::item.detailType | toDiscountHandleType" title="{{::item.detailType | toDiscountHandleType}}"></span>                                                    </td>                                                    <td style="width:10%;">                                                        <span class="single-line-text" ng-bind="::item.discount" title="{{::item.discount}}"></span>                                                    </td>                                                    <td style="width:10%;">                                                        <span class="single-line-text"></span>                                                    </td>                                                    <td style="width:10%;">                                                        <span class="single-line-text" ng-bind="::item.afterDiscountPrice" title="{{::item.afterDiscountPrice}}"></span>                                                    </td>                                                    <td style="width:10%;">                                                        <span class="single-line-text" ng-bind="::item.maxCount" title="{{::item.maxCount}}"></span>                                                    </td>                                                    <td style="width:10%;">                                                        <span class="single-line-text" ng-bind="item.maxCount - item.remainCount" title="{{item.maxCount - item.remainCount}}"></span>                                                    </td>                                                    <td style="width:10%;">                                                        <span class="single-line-text" ng-bind="::item.remainCount" title="{{::item.remainCount}}"></span>                                                    </td>                                                    <td style="width:8%;padding-left: 0;">                                                        <span class="single-line-text iconfont icon-chakan detail-btn" data-toggle="tooltip" data-placement="top" data-original-title="使用记录" ng-click="discountPlanDetail(item,prederentialCardItem.transactionId)"></span>                                                    </td>                                                </tr>                                            </table>                                        </div>                                    </div>                                </div>                            </div>                        </div>                    </td>                </tr>            </table>        </div>    </div></div>');templateCache.put('/app/gift/components/patient-membership-prederential-card-use-detail/patient-membership-prederential-card-use-detail-view.html','<div ares-modal-dragable ares-clean-kendo>    <div class="modal-header ares-dialog-header">        <button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">&times;</span></button>        <h4 class="modal-title">消费记录查询</h4>    </div>    <div class="modal-body ares-dialog-body">        <table id="searchCriteria" style="width:100%;padding-left: 10px;">            <tr>                <td style="width: 210px;padding-left: 10px;">                    <label>消费时间</label>                    <input type="text" class="form-control"                           kendo-date-picker ng-model="searchCriteria.startTime"                           k-format="\'yyyy-MM-dd\'" k-parse-formats="[\'yyyy-MM-dd\']" style="width: 130px;">                </td>                <td style="padding-left: 5px;width: 20px;" ng-hide="defaultSelect">-</td>                <td style="width: 130px; " ng-hide="defaultSelect">                    <input type="text" class="form-control"                           kendo-date-picker ng-model="searchCriteria.endTime"                           k-format="\'yyyy-MM-dd\'" k-parse-formats="[\'yyyy-MM-dd\']" style="width: 130px; ">                </td>                <td style="padding-left: 20px;">                    <button type="button" class="btn btn-default" ares-slow-click="search()">                        <span class="glyphicon glyphicon-search" aria-hidden="true"></span> 查询                    </button>                </td>            </tr>        </table>        <div id="perderential-card-transaction-table" style="margin-top:5px"></div>    </div>    <div class="modal-footer ares-dialog-footer">    </div></div>');templateCache.put('/app/gift/components/patient-point-block/patient-point-block-view.html','<div class="panel panel-default" ares-authorize="patientMembership.membershipPoint">    <style>        #point-info .panel-body {            height: 140px;        }        .share-info {            font-size: 14px;        }        .share-info-show {            padding-left: 10px;            margin-left: 10px;            border-left: solid 1px lightgray;            line-height: 18px;            display: inline;            vertical-align: middle;            color: #00a8cb;        }            .share-info-show:hover {                cursor: pointer;            }    </style>    <div class="panel-heading">        <div class="pull-left panel-heading-description">            <span class="panel-heading-title">积分</span>            <span class="icon-description icon-shared"                  ng-if="patient.isPointFromShare"                  data-toggle="tooltip" data-placement="top" title="共享自{{ patient.pointOwnerName }}"></span>        </div>        <div class="pull-right panel-heading-action">            <button class="btn btn-primary" ng-if="isPointEditable" ng-click="updatePoint()" ares-authorize="patientMembership.editPoint">调整</button>            <button class="btn btn-primary" ng-click="showTransactionHisotry()">变动记录</button>        </div>    </div>    <div class="panel-body">        <table style="min-height:100px;width:100%;">            <tr>                <td style="text-align:left;">                    <div>                        <label class="notes-title show-major">当前积分：</label>                        <label class="notes-value show-major plus-size">{{ patient.point }}</label>                    </div>                    <div ng-if="isShowSharePointInfo()">                        <label class="share-info notes-title show-major">共享人总积分：</label>                        <label class="share-info notes-value show-major">{{ sharedPoint }}</label>                        <p class="share-info share-info-show show-major" ng-click="showSharePointDetailInfo()">查看明细</p>                    </div>                </td>            </tr>        </table>    </div></div>');templateCache.put('/app/gift/dialogs/advance-payment-workflow-preview-dialog/advance-payment-workflow-preview-view.html','<div ares-modal-dragable ares-clean-kendo id="advance-payment-workflow-preview-wrap" class="enyo enyo-gift">    <style>        #advance-payment-workflow-preview-wrap {            font-size: 13.5px;        }            #advance-payment-workflow-preview-wrap .workflow-base-info {                margin: -15px -15px 15px;                background-color: #E0FAFF;                padding: 0 15px;            }            #advance-payment-workflow-preview-wrap .transfer-icon {                color: #44C671;                width: 30px;                height: 30px;                margin: 10px 0 10px 30px;                font-size: 24px;                text-align: center;                line-height: 30px;            }            #advance-payment-workflow-preview-wrap .row > .row-cell {                margin-left: 20px;                vertical-align: middle;            }                #advance-payment-workflow-preview-wrap .row > .row-cell:first-child {                    margin: 0;                }            #advance-payment-workflow-preview-wrap .task-status-pending {                padding: 0 5px;                line-height: 24px;                color: #fff;                background-color: orange;                border-radius: 4px;            }            #advance-payment-workflow-preview-wrap .workflow-content #advance-apply-change-info {                padding-bottom: 10px;            }                #advance-payment-workflow-preview-wrap .workflow-content #advance-apply-change-info .row-cell.icon-next-step {                    margin: 0 8px;                    height: 24px;                    width: 24px;                    min-width: 24px;                    min-height: 24px;                    text-align: center;                    line-height: 23px;                    border: 1.5px solid #44ABE3;                    border-radius: 12px;                    color: #44ABE3;                }            #advance-payment-workflow-preview-wrap .row.owner-patient-info .row-cell,            #advance-payment-workflow-preview-wrap .row.target-patient-info .row-cell {                margin-right: 20px;            }            #advance-payment-workflow-preview-wrap .workflow-content .account-frame-border {                border: 1px solid #CFDBDD;                padding: 5px 10px;                min-width: 200px;                margin: 0;            }            #advance-payment-workflow-preview-wrap .owner-patient-info {                margin-bottom: 5px;            }            #advance-payment-workflow-preview-wrap .target-patient-info {                margin-top: 5px;            }            #advance-payment-workflow-preview-wrap .apply-other-info {                margin-top: 15px;            }                #advance-payment-workflow-preview-wrap .apply-other-info td.workflow-preview-title {                    text-align: right;                    padding-right: 20px;                    width: 80px;                }                #advance-payment-workflow-preview-wrap .apply-other-info td.workflow-preview-content {                    text-align: left;                    padding-right: 20px;                    width: 300px;                }                #advance-payment-workflow-preview-wrap .apply-other-info td {                    text-align: left;                }            #advance-payment-workflow-preview-wrap .workflow-content #advance-payment-info .workflow-preview-title {                display: inline-block;                vertical-align: middle;                line-height: 32px;                width: 85px;                text-align: right;            }            #advance-payment-workflow-preview-wrap .workflow-content #advance-payment-info .workflow-preview-content {                display: inline-block;                vertical-align: middle;                width: 85px;                line-height: 32px;                text-align: left;                font-weight: bold;                font-size: 15px;            }            #advance-payment-workflow-preview-wrap .workflow-content #advance-payment-info .workflow-preview-operator {                font-weight: bold;                font-size: 15px;                width: 5px;                line-height: 32px;                text-align: center;                display: inline-block;                vertical-align: middle;            }            #advance-payment-workflow-preview-wrap .workflow-content #advance-payment-info .middle-change-frame {                width: 240px;            }                #advance-payment-workflow-preview-wrap .workflow-content #advance-payment-info .middle-change-frame .workflow-preview-content-description {                    display: inline-block;                    vertical-align: middle;                    font-size: 15px;                    font-weight: bold;                    line-height: 32px;                }    </style>    <div class="enyo-modal-container">        <div class="enyo-modal-header clearfix">            <div class="pull-left enyo-modal-title">储值卡审批申请</div>            <div class="pull-right iconfont icon-guanbi" ng-click="cancel();"></div>        </div>        <div class="enyo-modal-content" style="padding:15px;">            <div class="row workflow-base-info">                <div class="row-cell">                    <span ng-class="getStatusStyleClass()">{{ workflow.taskStatusStr }}</span>                </div>                <div class="row-cell">                    <span class="workflow-preview-title">审批类型：</span>                    <span class="workflow-preview-content">{{ actionTypeStr }}</span>                </div>                <div class="row-cell">                    <span class="workflow-preview-title">申请人：</span>                    <span class="workflow-preview-content">{{ workflow.applicant }}</span>                </div>                <div class="row-cell">                    <span class="workflow-preview-title">申请时间：</span>                    <span class="workflow-preview-content">{{ workflow.applicationTime | toLongDateMMString }}</span>                </div>                <div class="row-cell">                    <span class="workflow-preview-title">交易时间：</span>                    <span class="workflow-preview-content">{{ transactionTime | toLongDateMMString }}</span>                </div>            </div>            <div class="workflow-content">                <div class="row " id="advance-apply-change-info" ng-class="actionTypeStr == \'转账\'?\'account-frame-border\':\'\'">                    <div class="row owner-patient-info">                        <p class="row-cell" style="font-weight:bold;font-size:15px;"                           ng-if="actionTypeStr == \'转账\'">转出账户</p>                        <div class="row-cell">                            <span class="workflow-preview-title">持卡人姓名：</span>                            <span class="workflow-preview-content">{{ ownerPatientName }}</span>                        </div>                        <div class="row-cell">                            <span class="workflow-preview-title">手机：</span>                            <span class="workflow-preview-content">{{ ownerPatientMobile }}</span>                        </div>                        <div class="row-cell">                            <span class="workflow-preview-title">病例号：</span>                            <span class="workflow-preview-content">{{ ownerPatientPrivateId }}</span>                        </div>                        <div class="row-cell">                            <span class="workflow-preview-title">归属诊所：</span>                            <span class="workflow-preview-content">{{ ownerPatientOfficeName }}</span>                        </div>                    </div>                    <div class="row" id="advance-payment-info">                        <div class="row-cell account-frame-border">                            <div class="row" style="text-align:center;">审批前余额</div>                            <div class="row">                                <span class="workflow-preview-title">储值卡本金：</span>                                <span class="workflow-preview-content">{{ beforePrincipalBalance | toMoney }}</span>                            </div>                            <div class="row">                                <span class="workflow-preview-title">馈赠金：</span>                                <span class="workflow-preview-content">{{ beforeGiftBalance | toMoney }}</span>                            </div>                        </div>                        <div class="row-cell icon-next-step iconfont icon-xiayibuchakangengduoqianjin"></div>                        <div class="row-cell account-frame-border middle-change-frame">                            <div class="row" style="text-align:center;">申请变动金额</div>                            <div class="row">                                <span class="workflow-preview-title">储值卡本金：</span>                                <span class="workflow-preview-operator" style="color:red">                                    {{ changePrincipalAmount>0?\'-\':\'\' }}                                </span>                                <span class="workflow-preview-content" style="color:red">                                    {{ changePrincipalAmount | toMoney }}                                </span>                                <span class="workflow-preview-content-description"> {{ changePrincipalAmountStr }}</span>                            </div>                            <div class="row">                                <span class="workflow-preview-title">馈赠金：</span>                                <span class="workflow-preview-operator" style="color:red">                                    {{ changeGiftAmount>0?\'-\':\'\' }}                                </span>                                <span class="workflow-preview-content" style="color:red">                                    {{ changeGiftAmount | toMoney }}                                </span>                                <span class="workflow-preview-content-description"> {{ changeGiftAmountStr }}</span>                            </div>                        </div>                        <p class="row-cell icon-next-step iconfont icon-xiayibuchakangengduoqianjin"></p>                        <div class="row-cell account-frame-border">                            <div class="row" style="text-align:center;">审批后余额</div>                            <div class="row">                                <span class="workflow-preview-title">储值卡本金：</span>                                <span class="workflow-preview-content" style="color:#85D52E">                                    {{ afterPrincipalBalance | toMoney }}                                </span>                            </div>                            <div class="row">                                <span class="workflow-preview-title">馈赠金：</span>                                <span class="workflow-preview-content" style="color:#85D52E">                                    {{ afterGiftBalance | toMoney }}                                </span>                            </div>                        </div>                    </div>                </div>                <p class="transfer-icon iconfont icon-jiantou" ng-if="actionTypeStr == \'转账\'"></p>                <div class="row target-patient-info account-frame-border" ng-if="actionTypeStr == \'转账\'">                    <p class="row-cell" style="font-weight:bold;font-size:15px;">转入账户</p>                    <div class="row-cell">                        <span class="workflow-preview-title">持卡人姓名：</span>                        <span class="workflow-preview-content">{{ targetPatientName }}</span>                    </div>                    <div class="row-cell">                        <span class="workflow-preview-title">手机：</span>                        <span class="workflow-preview-content">{{ targetPatientMobile }}</span>                    </div>                    <div class="row-cell">                        <span class="workflow-preview-title">病例号：</span>                        <span class="workflow-preview-content">{{ targetPatientPrivateId }}</span>                    </div>                    <div class="row-cell">                        <span class="workflow-preview-title">归属诊所：</span>                        <span class="workflow-preview-content">{{ targetPatientOfficeName }}</span>                    </div>                </div>                <div class="apply-other-info">                    <table style="width:100%;">                        <tr ng-if="actionTypeStr == \'退费\'">                            <td class="workflow-preview-title">支付方式: </td>                            <td class="workflow-preview-content">{{ applyPayType }}</td>                            <td class="workflow-preview-title">退费原因: </td>                            <td class="workflow-preview-content">{{ applyReason }}</td>                        </tr>                        <tr>                            <td class="workflow-preview-title">备注: </td>                            <td colspan="3" class="workflow-preview-content">{{ applyNote }}</td>                        </tr>                    </table>                </div>            </div>        </div>        <div class="enyo-modal-footer" style="text-align:center;padding:10px 0;">            <button class="btn btn-default" ng-click="cancel()">关闭</button>        </div>    </div></div>');templateCache.put('/app/gift/dialogs/membership-card-action-dialog/membership-card-action-view.html','<div id="membership-card-action-wrap" ares-modal-dragable ares-clean-kendo class="enyo enyo-gift">    <div class="enyo-modal-container">        <div class="enyo-modal-header clearfix">            <div class="pull-left enyo-modal-title">{{ title }}</div>            <div class="pull-right iconfont icon-guanbi" ng-click="cancel();"></div>        </div>        <div class="enyo-modal-content" style="padding:15px 5px;">            <div class="row form-group">                <label class="control-label">患者名称：</label>                <label class="control-label">{{ patient.name }}</label>            </div>            <div class="row form-group">                <label class="control-label">会员卡号：</label>                <div class="row-cell">                    <input type="text" class="form-control" style="width:200px;"                           ng-model="membership.cardNumber"                           ng-disabled="membership.id && membershipTypeApply"                           placeholder="请输入会员卡号" />                </div>                <div class="row-cell">                    <a title="刷新会员卡号" ng-click="refreshCardNum()">                        <span class="iconfont icon-shuaxinzhongzhi" ng-show="refreshCardNumEnabled"></span>                    </a>                </div>            </div>            <div class="row form-group">                <label class="control-label">会员方案：</label>                <div class="row-cell" ng-show="isMembershipLevelRuleEnable && hasLevelType">                    <select class="form-control" kendo-drop-down-list style="width:110px"                            ng-disabled="!canEditMembershipType()"                            k-change="onChangeSelectTypeMode" ng-model="selectTypeMode">                        <option value="hasLevel">等级会员</option>                        <option value="notLevel">非等级会员</option>                    </select>                </div>                <div class="row-cell" ng-if="membershipTypeList">                    <input class="form-control to-membership-type-drop-down" kendo-drop-down-list                           style="width: 120px;" id="to-membership-type-select"                           k-data-source="membershipTypeList" k-filter="\'contains\'"                           k-data-text-field="\'name\'" k-data-value-field="\'id\'"                           k-change="onChangeMembershipType" ng-disabled="!canEditMembershipType()"                           ng-model="membership.membershipTypeId" />                </div>                <div class="row-cell" ng-show="membership.membershipTypeId">                    <a href="javascript:void();" ng-click="showCurrentTypeDetail()">查看等级详情</a>                </div>            </div>            <div class="row form-group" ng-show="isShowExternalId">                <label class="control-label">有赞卡号：</label>                <div class="row-cell">                    <input type="text" class="form-control" style="width:240px;"                           ng-disabled="isYouzanCardDisabled()"                           ng-change="onChangeExternalId()"                           ng-model="membership.externalId" />                </div>                <div class="row-cell">                    <a href="javascript:void(0);" ng-show="!isYouzanCardDisabled()" ng-click="verifyYouzanId()">校验</a>                </div>            </div>            <div class="row form-group" ng-show="membership.externalData" style="margin: -15px 0px 0px 0px;">                <label class="control-label"></label>                <div class="row-cell">                    <label>{{membership.externalData.name}}</label>                </div>                <div class="row-cell">                    <label>{{membership.externalData.mobile}}</label>                </div>            </div>            <div class="row form-group">                <label class="control-label">有效期：</label>                <div class="row-cell">                    <input id="membershipEndTimePicker" class="form-control" kendo-date-picker ng-model="membership.vaildEndTime"                           k-format="\'yyyy-MM-dd\'" k-parse-formats="[\'yyyy-MM-dd\']" k-options="datepickerOptions" />                </div>            </div>            <div class="row form-group" ng-show="!patientMembershipId || action==\'edit\'">                <label class="control-label">实体卡：</label>                <div class="row-cell">                    <input type="checkbox" class="enyo-checkbox" id="writeICCard" ng-model="writeICCard">                    <label class="enyo-checkbox-label" for="writeICCard">写入IC卡</label>                </div>                <div class="row-cell">                    <input type="checkbox" class="enyo-checkbox" id="isCheckDiscount" ng-model="membership.isCheckDiscount">                    <label class="enyo-checkbox-label" for="isCheckDiscount">验卡打折</label>                </div>                <div class="row-cell">                    <input type="checkbox" class="enyo-checkbox" id="isCheckPayment" ng-model="membership.isCheckPayment">                    <label class="enyo-checkbox-label" for="isCheckPayment">验卡扣减预付款</label>                </div>            </div>            <div class="row form-group" ng-show="membershipTypeApply">                <label class="control-label">备注：</label>                <div class="row-cell">                    <textarea type="text" class="form-control" rows="1" ng-model="membership.typeApplyNote"                              style="width:280px;max-width:280px;" placeholder="请输入备注" />                </div>            </div>        </div>        <div class="enyo-modal-footer" style="text-align:center;padding:10px 0;">            <button class="btn btn-primary" ng-click="ok()">确定</button>            <button class="btn btn-default" ng-click="cancel()">取消 </button>        </div>    </div></div>');templateCache.put('/app/gift/dialogs/membership-discount-detail-dialog/membership-discount-detail-view.html','<div ares-modal-dragable ares-clean-kendo class="enyo">    <div class="enyo-modal-container">        <div class="enyo-modal-header clearfix">            <div class="pull-left enyo-modal-title">添加处置</div>            <div class="pull-right iconfont icon-guanbi" ng-click="cancel();"></div>        </div>        <div class="enyo-modal-content" style="padding:10px">            <form id="addHandle" name="addHandle" class="form-horizontal">                <div class="form-group" style="padding-left:40px;">                    <div class="col-sm-5" ng-hide="type==\'gift\'">                        <div class="col-sm-6" style="padding:0">                            <input type="radio" class="enyo-radio" id="simpleDetailItem" name="status"                                   ng-value="false" ng-click="switchItemType()"                                   ng-model="selectHandleItem" ng-disabled="!isShowSimpleDetailItem">                            <label class="enyo-radio-label" for="simpleDetailItem">处置小类</label>                        </div>                        <div class="col-sm-6" style="padding:0">                            <input type="radio" class="enyo-radio" id="detailItem" name="status"                                   ng-value="true" ng-click="switchItemType()"                                   ng-model="selectHandleItem" ng-disabled="!isShowDetailItem">                            <label class="enyo-radio-label" for="detailItem">处置项目</label>                        </div>                    </div>                    <div class="col-sm-7" ng-show="selectHandleItem"                         style="margin-left:-20px">                        <div class="enyo-radio-btn-group">                            <input type="radio" id="radioSearch" name="FilterMode" ng-checked="filterMode == \'searchMode\'"                                   ng-click="switchFilterMode(\'searchMode\')">                            <label for="radioSearch" style=" margin-bottom:0">全局项目搜索</label>                            <input type="radio" id="radioTypeFilter" name="FilterMode" ng-checked="filterMode == \'typeFilterMode\'"                                   ng-click="switchFilterMode(\'typeFilterMode\')">                            <label for="radioTypeFilter" style="margin-bottom:0">按类别过滤</label>                        </div>                    </div>                    <div class="col-sm-7" ng-hide="selectHandleItem"                         style="margin-left:-50px;">                        <label class="col-md-5" style="margin:6px 0;padding:0 10px">按大类筛选:</label>                        <input id="superTypeList" kendo-drop-down-list="" k-on-change="onHandleSuperTypeSelected(kendoEvent)"                               ng-model="selectHandleSuperCatagory" k-data-text-field="\'itemName\'" k-data-value-field="\'id\'"                               k-data-source="superChargeCategoryList" type="text" class="form-control" style="width:150px;">                    </div>                </div>                <div class="form-group" style="padding:0 40px;height:32px;"                     ng-show="selectHandleItem && filterMode == \'typeFilterMode\' ">                    <div class="col-sm-6">                        <label class="col-md-4" style="margin:6px 0;padding:0 ">按大类筛选:</label>                        <input id="handleSuperTypeList" kendo-drop-down-list k-on-change="onHandleSuperTypeSelected(kendoEvent)"                               ng-model="selectHandleSuperCatagory" k-data-text-field="\'itemName\'" k-data-value-field="\'id\'"                               k-data-source="superChargeCategoryList" type="text" class="form-control" style="width:150px;">                    </div>                    <div class="col-sm-6">                        <label class="col-md-4" style="margin:6px 0;padding:0 ">按小类筛选:</label>                        <input id="handleTypeList" kendo-drop-down-list k-on-change="onHandleTypeSelected(kendoEvent)"                               ng-model="selectHandleCatagory" k-data-text-field="\'itemName\'" k-data-value-field="\'id\'"                               k-data-source="chargeCatagoryList" type="text" class="form-control" style="width:150px;">                    </div>                </div>                <div class="form-group" style="padding:0 50px;"                     ng-show="selectHandleItem && filterMode == \'searchMode\'">                    <div class="input-group" style="width:300px; position:relative">                        <i class="glyphicon glyphicon-search"                           style="position: absolute;left: 0;z-index:5;margin:8px 8px"></i>                        <input id="all-charge-item" type="text"                               style="padding-left:28px; border-radius: 5px;"                               class="searchTerm search-default form-control"                               placeholder="请输入项目首字母/名称"                               ng-keyup="onSearchChargeItems($event)"                               ng-model="searchKeyWord" />                    </div>                </div>                <div class="form-group" style="padding-left:50px;">                    <div id="catagoryGrid" style="width:500px;" ng-hide="selectHandleItem"></div>                    <div id="itemGrid" style="width:500px;" ng-show="selectHandleItem"></div>                </div>            </form>        </div>        <div class="enyo-modal-footer text-center" style="padding:10px">            <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>            <button type="button" class="btn btn-primary" ng-click="save()">确定</button>        </div>    </div></div>');templateCache.put('/app/gift/dialogs/membership-gift-certificate-package-plan-dialog/membership-gift-certificate-package-plan-view.html','<div ares-modal-dragable ares-clean-kendo class="enyo">    <div class="enyo-modal-container">        <div class="enyo-modal-header clearfix">            <div class="pull-left enyo-modal-title">添加卡券</div>            <div class="pull-right iconfont icon-guanbi" ng-click="cancel();"></div>        </div>        <div class="enyo-modal-content" style="padding:10px">            <form id="addHandle" name="addHandle" class="form-horizontal">                <div class="form-group" style="padding-left:40px;">                    <div class="col-sm-7" style="margin-left:-30px;margin-top:5px;">                        <label class="col-md-4" style="margin-top:2px;">卡券类型:</label>                        <input id="certificateType" kendo-drop-down-list="" k-on-change="onCertificateTypeSelected(kendoEvent)" ng-model="defaultCertificateType" k-data-text-field="\'typeName\'"                               k-data-value-field="\'typeId\'" k-data-source="certificateTypes"                               type="text">                    </div>                </div>                <div class="form-group" style="padding-left:50px;">                    <div id="itemGrid" style="width:500px;height:500px;overflow:auto;"></div>                </div>            </form>        </div>        <div class="enyo-modal-footer text-center" style="padding:10px">            <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>            <button type="button" class="btn btn-primary" ng-click="save()">确定</button>        </div>    </div></div>');templateCache.put('/app/gift/dialogs/membership-gift-plan-dialog/membership-gift-plan-view.html','<div ares-modal-dragable ares-clean-kendo class="enyo">    <div class="enyo-modal-container">        <div class="enyo-modal-header clearfix">            <div class="pull-left enyo-modal-title">添加处置</div>            <div class="pull-right iconfont icon-guanbi" ng-click="cancel();"></div>        </div>        <div class="enyo-modal-content" style="padding:10px">            <form id="addHandle" name="addHandle" class="form-horizontal">                <div class="form-group" style="padding:0 50px;">                    <div class="enyo-radio-btn-group">                        <input type="radio" id="radioSearch" name="FilterMode" ng-checked="filterMode == \'searchMode\'"                               ng-click="switchFilterMode(\'searchMode\')">                        <label for="radioSearch">全局项目搜索</label>                        <input type="radio" id="radioTypeFilter" name="FilterMode" ng-checked="filterMode == \'typeFilterMode\'"                               ng-click="switchFilterMode(\'typeFilterMode\')">                        <label for="radioTypeFilter">按类别过滤</label>                    </div>                </div>                <div class="form-group" style="padding:0 40px;height:32px;" ng-show="filterMode == \'typeFilterMode\' ">                    <div class="col-sm-6">                        <label class="col-md-4" style="padding:0;">按大类筛选:</label>                        <input id="handleSupCategoryList" kendo-drop-down-list=""                               k-on-change="onHandleSupCategorySelect(kendoEvent)"                               ng-model="defaultSupCategoryId" k-data-text-field="\'itemName\'"                               k-data-value-field="\'id\'" k-data-source="chargeSupCatagoryList"                               type="text" class="form-control" style="width:150px;margin-top:-5px;">                    </div>                    <div class="col-sm-6">                        <label class="col-md-4" style="padding:0;">按小类筛选:</label>                        <input id="handleTypeList" kendo-drop-down-list=""                               k-on-change="onHandleTypeSelected(kendoEvent)"                               ng-model="defaultCategoryId" k-data-text-field="\'itemName\'"                               k-data-value-field="\'id\'" k-data-source="chargeCatagoryList"                               type="text" class="form-control" style="width:150px;margin-top:-5px;">                    </div>                </div>                <div class="form-group" style="padding:0 50px;" ng-show="filterMode == \'searchMode\' ">                    <!--<input class="form-control" ng-model="chargeItemsFilter"                    ng-change="filteChargeItemByFilter()" placeholder="项目名称/拼音缩写" />-->                    <div class="input-group" style="width:300px; position:relative">                        <i class="glyphicon glyphicon-search"                           style="position: absolute;left: 0;z-index:5;margin:8px 8px"></i>                        <input id="all-charge-item" type="text"                               style="padding-left:28px; border-radius: 5px;"                               class="searchTerm search-default form-control"                               placeholder="请输入项目首字母/名称"                               ng-keyup="filteChargeItemByFilter($event)"                               ng-model="chargeItemsFilter" />                    </div>                </div>                <div class="form-group" style="padding-left:50px;">                    <div id="itemGrid" style="width:500px;height:550px;overflow:auto;"></div>                </div>            </form>        </div>        <div class="enyo-modal-footer text-center" style="padding:10px">            <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>            <button type="button" class="btn btn-primary" ng-click="save()">确定</button>        </div>    </div></div>');templateCache.put('/app/gift/dialogs/membership-transaction-edit-dialog/membership-transaction-edit-view.html','<div ares-modal-dragable ares-clean-kendo class="enyo">    <style scoped>        #membershipInfo .control-content {            padding-top: 0;            margin-left: -15px;        }        .k-grid td {            padding: 0;        }    </style>    <div class="enyo-modal-container">        <div class="enyo-modal-header clearfix">            <div class="pull-left enyo-modal-title">编辑储值卡交易方式</div>            <div class="pull-right iconfont icon-guanbi" ng-click="cancel();"></div>        </div>        <div class="enyo-modal-content" style="height: 120px;padding: 20px;">            <div id="membershipInfo">                <div class="row">                    <div class="form-group col-md-12">                        <label class="control-label">收款方式：</label>                        <input id="payType" type="text" class="form-control" style="width:110px; margin-left:15px">                    </div>                </div>                <div class="row">                    <div class="form-group col-md-12">                        <label class="control-label" style="margin-left: 14px;">经办人：</label>                        <input id="contributorId" type="text" class="form-control" style="width:110px; margin-left:15px" ng-model="transaction.newContributorId">                    </div>                </div>            </div>        </div>        <div class="enyo-modal-footer" style="text-align:center;padding:10px 0">            <button ng-click="save()" class="btn btn-primary">保存</button>            <button type="button" class="btn btn-default" ng-click="cancel()">关闭</button>        </div>    </div></div>');templateCache.put('/app/gift/dialogs/membership-type-apply-reject-dialog/membership-type-apply-reject-view.html','<div ares-modal-dragable ares-clean-kendo id="membership-type-apply-reject-wrap" class="enyo enyo-gift">    <div class="enyo-modal-container">        <div class="enyo-modal-header clearfix">            <div class="pull-left enyo-modal-title">拒绝等级申请</div>            <div class="pull-right iconfont icon-guanbi" ng-click="cancel();"></div>        </div>        <div class="enyo-modal-content" style="height:200px;padding:15px;">            <div class="row">                <label class="control-label" style="text-align:left;">拒绝原因：</label>            </div>            <div class="row">                <textarea class="form-control" ng-model="note"                          style="height:100px;max-height:100px; width:300px;max-width:300px;"                          placeholder="请输入拒绝原因"></textarea>            </div>        </div>        <div class="enyo-modal-footer" style="text-align:center;padding:10px 0;">            <button class="btn btn-primary" ng-click="ok()">确定</button>            <button class="btn btn-default" ng-click="cancel()">取消</button>        </div>    </div></div>');templateCache.put('/app/gift/dialogs/membership-type-batch-action-dialog/membership-type-batch-action-view.html','<div ares-modal-dragable ares-clean-kendo id="membership-type-batch-action-wrap" class="enyo enyo-gift">    <div class="enyo-modal-container">        <div class="enyo-modal-header clearfix">            <div class="pull-left enyo-modal-title">批量{{ actionType }}等级申请</div>            <div class="pull-right iconfont icon-guanbi" ng-click="cancel();"></div>        </div>        <div class="enyo-modal-content" style="height:200px;padding:15px;">            <div class="row">                <label class="control-label" style="text-align:left;">                    当前选中 {{ applys.length }} 条申请                </label>            </div>            <div class="row">                <label class="control-label" style="text-align:left;">批量操作备注：</label>            </div>            <div class="row">                <textarea class="form-control" ng-model="note"                          style="height:100px;max-height:100px; width:300px;max-width:300px;"                          placeholder="请输入批量操作备注"></textarea>            </div>        </div>        <div class="enyo-modal-footer" style="text-align:center;padding:10px 0;">            <button class="btn btn-primary" ng-click="ok()">确定</button>            <button class="btn btn-default" ng-click="cancel()">取消</button>        </div>    </div></div>');templateCache.put('/app/gift/dialogs/membership-type-edit-dialog/membership-type-edit-dialog-view.html','<div id="membership-type-edit-wrap" class="enyo enyo-gift">    <style>        #membership-type-edit-wrap {            height: 100%;        }            #membership-type-edit-wrap .membership-type-edit-wrap-header {                background: #e0faff;                height: 36px;                box-sizing: content-box;                border-bottom: 1px solid #cfdbdd;            }            #membership-type-edit-wrap .membership-type-edit-content {                height: calc(100% - 87px);                width: 100%;            }                #membership-type-edit-wrap .membership-type-edit-content .membership-type-edit-switch-content {                    height: 100%;                    overflow-y: auto;                    overflow-x: hidden;                }            #membership-type-edit-wrap .membership-type-edit-footer {                box-sizing: border-box;                height: 50px;                background-color: #f3f7f7;                border-top: 1px solid #cfdbdd;            }            #membership-type-edit-wrap .ares-numeric-max {                vertical-align: top;            }                #membership-type-edit-wrap .ares-numeric-max.ares-numeric-input input {                    height: 32px;                }                #membership-type-edit-wrap .ares-numeric-max.ares-numeric-input .min-plus-btn {                    line-height: 30px;                    height: 32px;                }            #membership-type-edit-wrap label {                font-size: 13px;                font-weight: 400;                margin: 0;            }            #membership-type-edit-wrap .form-control {                display: inline-block;                vertical-align: top;            }    </style>    <div class="membership-type-edit-wrap-header clearfix">        <ul class="enyo-navbar clearfix">            <li role="presentation" ng-class="isBaseMode()?\'active\':\'\'">                <a ng-click="setModeActive(\'base\')"                   href="">基本信息</a>            </li>            <li role="presentation" ng-class="isLevelMode()?\'active\':\'\'" ng-show="showMembershipLevel && membershipType.hasLevel">                <a ng-click="setModeActive(\'level\')"                   href="">会员等级规则</a>            </li>            <li role="presentation" ng-class="isGiftMode()?\'active\':\'\'">                <a ng-click="setModeActive(\'gift\')"                   href="">会员权益</a>            </li>        </ul>    </div>    <div class="membership-type-edit-content">        <div class="membership-type-edit-switch-content" ng-show="isBaseMode()">            <membership-type-edit-base-view></membership-type-edit-base-view>        </div>        <div class="membership-type-edit-switch-content" ng-show="isGiftMode()">            <membership-type-edit-gift-view></membership-type-edit-gift-view>        </div>        <div class="membership-type-edit-switch-content" ng-show="isLevelMode()">            <membership-type-edit-level-view></membership-type-edit-level-view>        </div>    </div>    <div class="membership-type-edit-footer">        <div class="pull-right" style="padding:9px 0;">            <button class="btn btn-default" ng-click="cancel()">取消</button>            <button class="btn" ng-click="save()" ares-hide="::isBrowse"                    style="background-color:#f7a51d;color:#fff;">                保存            </button>        </div>    </div></div>');templateCache.put('/app/gift/dialogs/patient-advance-payment-business/patient-advance-payment-business-view.html','<div ares-modal-dragable ares-clean-kendo id="patient-advance-payment-business-wrap" class="enyo">    <style>        #patient-advance-payment-business-wrap .enyo-modal-content {            padding: 20px;        }            #patient-advance-payment-business-wrap .enyo-modal-content table tr td {                font-size: 0;            }            #patient-advance-payment-business-wrap .enyo-modal-content .info-row {                margin-top: 20px;                font-size: 0;            }                #patient-advance-payment-business-wrap .enyo-modal-content .info-row .notes-value table tr td,                #patient-advance-payment-business-wrap .enyo-modal-content .info-row .mini-card table tr td {                    font-size: 14px;                }                #patient-advance-payment-business-wrap .enyo-modal-content .info-row .notes-value .search-box {                    padding-left: 0;                    padding-right: 0;                }            #patient-advance-payment-business-wrap .enyo-modal-content .notes-title {                display: inline-block;                vertical-align: middle;                font-size: 14px;                font-weight: 400;                min-width: 70px;                margin: 0;                padding: 0;            }            #patient-advance-payment-business-wrap .enyo-modal-content .notes-value {                display: inline-block;                vertical-align: middle;                font-size: 14px;                margin: 0;                padding: 0;                width: 225px;            }            #patient-advance-payment-business-wrap .enyo-modal-content .notes-value-md {                display: inline-block;                vertical-align: middle;                font-size: 14px;                margin: 0px 15px 0px 0px;                padding: 0;                width: 200px;            }            #patient-advance-payment-business-wrap .enyo-modal-content .notes-content .notes-title {                vertical-align: top;            }            #patient-advance-payment-business-wrap .enyo-modal-content .notes-content .notes-value {                vertical-align: top;            }        #patient-advance-payment-business-wrap .action-type-switch .btn-default[disabled] {            color: #333;            background-color: #e6e6e6;            border-color: #adadad;            box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);            filter: alpha(opacity=100);            opacity: 1;        }        #patient-advance-payment-business-wrap .info-hint {            display: inline-block;            font-size: 14px;            vertical-align: top;            margin-left: 10px;        }            #patient-advance-payment-business-wrap .info-hint span {                height: 30px;                background: #ffda9c;                padding: 0 10px;                box-sizing: border-box;                display: inline-block;                line-height: 30px;                min-width: 80px;            }    </style>    <div class="enyo-modal-container">        <div class="enyo-modal-header clearfix">            <div class="pull-left enyo-modal-title">储值卡</div>            <div class="pull-right iconfont icon-guanbi" ng-click="cancel();"></div>        </div>        <div class="enyo-modal-content" style="padding:15px;">            <patient-advance-payment-base-info-view patient="patient"                                                    patient-name="patient.name"                                                    principal-balance="advancePayment.balance"                                                    deposit-balance="advancePayment.deposit"                                                    present-price="advancePayment.presentPrice"></patient-advance-payment-base-info-view>            <div class="action-type-switch info-row">                <span class="notes-title">操作：</span>                <div class="notes-value">                    <div class="enyo-radio-btn-group" style="width:400px;">                        <input type="radio" id="advanceBusinessMode1" name="transactionType"                               ng-click="swicthTransactionType(transactionTypeEnum.Charge.value)"                               ng-checked="isChargeMode() && !isStrictMode">                        <label for="advanceBusinessMode1" ng-if="(isCheckedInToday && isStrongStrict) || !isStrongStrict"> 充值</label>                        <input type="radio" id="advanceBusinessMode2" name="transactionType"                               ng-click="swicthTransactionType(transactionTypeEnum.Withdraw.value)"                               ng-checked="isWithdrawMode()"                               ares-authorize="patientMembership.refund">                        <label for="advanceBusinessMode2" ares-authorize="patientMembership.refund"> 退费</label>                        <input type="radio" id="advanceBusinessMode3" name="transactionType"                               ng-click="swicthTransactionType(transactionTypeEnum.Transfer.value)"                               ng-checked="isTransferMode()"                               ares-authorize="patientMembership.transfer">                        <label for="advanceBusinessMode3" ares-authorize="patientMembership.transfer"> 转账</label>                        <input type="radio" id="advanceBusinessMode4" name="transactionType"                               ng-click="swicthTransactionType(transactionTypeEnum.Indeposit.value)"                               ng-checked="transaction.transactionType==transactionTypeEnum.Indeposit.value">                        <label for="advanceBusinessMode4" ng-if="allowDisposit"> 冻结</label>                        <input type="radio" id="advanceBusinessMode5" name="transactionType"                               ng-click="swicthTransactionType(transactionTypeEnum.Outdeposit.value)"                               ng-checked="transaction.transactionType==transactionTypeEnum.Outdeposit.value">                        <label for="advanceBusinessMode5" ng-if="allowDisposit"> 解冻</label>                    </div>                </div>            </div>            <div class="info-row"                 ares-authorize="patientMembership.appendTransaction"                 ng-show="isWithdrawMode()">                <table>                    <tr>                        <td>                            <span class="notes-title">操作时间：</span>                            <div class="notes-value">                                <input class="form-control" id="operation-date-time" />                            </div>                        </td>                    </tr>                </table>            </div>            <div class="info-row" ng-show="isChargeMode() && !isStrictMode">                <table>                    <tr>                        <td>                            <span class="notes-title">金额：</span>                            <div class="notes-value">                                <input id="amount" style="width:200px;" kendo-numeric-text-box                                       k-min="0" k-max="9999999" k-step="10"                                       k-options="{format: \'n2\', decimals:2, spinners: false, placeholder:\'请填写充值金额\'}"                                       k-ng-model="transaction.amount" k-on-change="onAmountChanged(transaction.amount)"                                       autofocus />                            </div>                        </td>                        <td>                            <span class="notes-title">馈赠金：</span>                            <div class="notes-value">                                <label class="control-content" ng-show="isAllowed(\'patientMembership.editGiftPrice\')">{{transaction.giftAmount}}</label>                                <input style="width:200px;" kendo-numeric-text-box                                       k-min="0" k-max="9999999" k-step="10"                                       k-options="{format: \'n2\', decimals:2, spinners: false, placeholder:\'请填写馈赠金额\'}"                                       k-ng-model="transaction.giftAmount" k-on-change="onGiftAmountChanged(transaction.giftAmount)"                                       ng-hide="isAllowed(\'patientMembership.editGiftPrice\')" />                            </div>                        </td>                    </tr>                    <tr ng-if="transaction.giftAmount > 0 && transaction.giftAmount == giftAmountByRule">                        <td></td>                        <td>                            <span class="notes-title"></span>                            <div class="notes-value">                                <label class="control-content"></label>                                <label style="width:200px;">充值满{{rechargePrice}}，赠送{{giftAmountByRule}}</label>                            </div>                        </td>                    </tr>                </table>            </div>            <div class="info-row" ng-show="isWithdrawMode()">                <table>                    <tr>                        <td>                            <span class="notes-title">金额：</span>                            <div class="notes-value">                                <input id="amount" style="width:200px;" kendo-numeric-text-box                                       k-min="0" k-max="9999999" k-step="10"                                       k-options="{format: \'n2\', decimals:2, spinners: false, placeholder:\'请填写退费金额\'}"                                       k-ng-model="transaction.amount" k-on-change="onAmountChanged(transaction.amount)" />                            </div>                        </td>                        <td>                            <span class="notes-title">馈赠金：</span>                            <div class="notes-value">                                <label class="radio-inline" style="padding-left:0;">                                    <input type="radio" name="radioGroup" class="enyo-radio"                                           ng-value="true" ng-model="transaction.isDelete" id="radio1"                                           style="margin-top: 10px;width:18px;height:18px;margin:1px 0 0 -20px;">                                    <label class="enyo-radio-label" for="radio1">作废</label>                                </label>                                <label class="radio-inline" style="margin:0;position:relative">                                    <input type="radio" name="radioGroup" class="enyo-radio"                                           ng-value="false" ng-model="transaction.isDelete" id="radio2"                                           style="margin-top: 10px;width:18px;height:18px;margin:2px 0 0 -20px;">                                    <label class="enyo-radio-label" for="radio2">扣除</label>                                </label>                                <div style="display:inline-block;vertical-align:middle;position:relative;">                                    <input style="width:70px;" kendo-numeric-text-box id="subtractMoneyInput"                                           k-min="0" k-max="advancePayment.presentPrice" k-options="{format: \'n2\', decimals:2, spinners: false}"                                           k-ng-model="subtractMoney" ng-disabled="transaction.isDelete" />                                    <span>元</span>                                    <span style="position:absolute;bottom: 44px;left:0;">剩余{{getSurplusMoney()}}元</span>                                </div>                            </div>                        </td>                    </tr>                </table>            </div>            <div class="info-row" ng-show="transaction.transactionType==transactionTypeEnum.Indeposit.value||transaction.transactionType==transactionTypeEnum.Outdeposit.value">                <table>                    <tr>                        <td>                            <span class="notes-title">金额：</span>                            <div class="notes-value">                                <input id="amount" style="width:200px;" kendo-numeric-text-box                                       k-min="0" k-max="9999999" k-step="10"                                       k-options="{format: \'n2\', decimals:2, spinners: false, placeholder:\'请填写金额\'}"                                       k-ng-model="transaction.depositAmount" autofocus />                            </div>                        </td>                    </tr>                </table>            </div>            <div ng-show="isTransferMode()">                <div class="info-row" style="font-size:14px;">                    <span class="notes-title">患者查询：</span>                    <div class="notes-value">                        <ares-patient-search ng-model="targetPatient"                                             on-patient-selected="onPatientSelected"                                             is-global-search="false"></ares-patient-search>                    </div>                </div>                <div class="info-row" style="font-size:14px;">                    <patient-full-card patient="targetPatient"></patient-full-card>                </div>                <div class="info-row">                    <span class="notes-title">本金金额：</span>                    <div class="notes-value-md">                        <input style="width:100%;" kendo-numeric-text-box                               k-min="0" k-max="9999999" k-step="10"                               k-options="{format: \'n2\', decimals:2, spinners: false, placeholder:\'请填写转账本金金额\'}"                               k-ng-model="transaction.amount" autofocus />                    </div>                    <span class="notes-title">馈赠金金额：</span>                    <div class="notes-value-md">                        <input style="width:100%;" kendo-numeric-text-box                               k-min="0" k-max="9999999" k-step="10"                               k-options="{format: \'n2\', decimals:2, spinners: false, placeholder:\'请填写转账馈赠金金额\'}"                               k-ng-model="transaction.giftAmount" autofocus />                    </div>                </div>            </div>            <div class="info-row">                <span ng-show="isWithdrawMode()"                      class="notes-title">支付方式：</span>                <div ng-show="isWithdrawMode()"                     class="notes-value">                    <input id="payType" kendo-drop-down-list                           class="form-control" style="width:200px;"                           k-on-select="onSelectPayType(kendoEvent)" k-data-source="chargeTypes"                           k-data-text-field="\'itemName\'" k-data-value-field="\'itemName\'"                           k-placeholder="\'请选择\'" />                </div>                <span class="notes-title" ng-if="!isChargeMode()">经办人：</span>                <div class="notes-value" ng-if="!isChargeMode()">                    <input id="contributorId" kendo-drop-down-list type="text" class="form-control"                           k-data-text-field="\'name\'" k-data-value-field="\'id\'" ng-if="otherProviders"                           k-data-source="otherProviders" ng-model="transaction.contributorId"                           style="width:200px;" k-filter="\'contains\'" k-option-label="\'请选择\'">                </div>            </div>            <div class="info-row"                 ng-show="(isWithdrawMode()&&isWithdrawPerformanceEnabled)">                <span class="notes-title">医生：</span>                <div class="notes-value">                    <input kendo-drop-down-list type="text" class="form-control"                           k-data-text-field="\'name\'" k-data-value-field="\'id\'"                           k-data-source="doctorList" ng-model="transaction.doctorId"                           style="width:200px;" k-filter="\'contains\'" k-option-label="\'请选择\'">                </div>                <span class="notes-title">咨询师：</span>                <div class="notes-value">                    <input kendo-drop-down-list type="text" class="form-control"                           k-data-text-field="\'name\'" k-data-value-field="\'id\'"                           k-data-source="consultantList" ng-model="transaction.consultantId"                           style="width:200px;" k-filter="\'contains\'" k-option-label="\'请选择\'">                </div>            </div>            <div class="info-row" ng-show="isRefundReasonEnabled && isWithdrawMode()">                <span class="notes-title">退费原因：</span>                <div class="notes-value">                    <input id="reason" kendo-drop-down-list                           type="text"                           class="form-control" style="width:200px;"                           k-data-source="withdrawReasons"                           k-filter="\'contains\'" k-option-label="\'请选择\'"                           ng-model="transaction.reason" />                </div>            </div>            <div class="notes-content info-row" ng-if="!isChargeMode()">                <span class="notes-title">备注：</span>                <div class="notes-value">                    <textarea class="form-control" rows="2"                              ng-model="transaction.notes"                              placeholder="请输入备注"                              style="width:500px;max-width:500px;"></textarea>                </div>            </div>            <div class="notes-content info-row" ng-if="isChargeMode()">                <div class="info-hint">                    <span>储值卡充值现在统一至收费开单流程，点击确定可收费开单，支付完成后即储值卡充值完成。</span>                </div>            </div>        </div>        <div class="enyo-modal-footer" style="padding:5px;text-align:center">            <button class="btn btn-primary" ng-click="ok()" ng-disabled="isSaving"                    ng-hide="advancePayment.workflowApply">                确定            </button>            <button class="btn btn-primary btn-wide" ng-click="okPrint()"                    ng-disabled="isSaving" ng-hide="advancePayment.workflowApply"                    ng-if="isChargeMode() || isWithdrawMode() || isTransferMode()">                确定并打印            </button>            <button class="btn btn-primary" ng-show="advancePayment.workflowApply" disabled>交易审批中</button>            <button class="btn btn-default" ng-click="cancel()">关闭</button>        </div>        <div id="{{privateTemplate.templateCode}}" style="display:none; ">            <div ng-bind-html="privateTemplate.templateContent">            </div>        </div>    </div></div>');templateCache.put('/app/gift/dialogs/patient-advance-payment-password/patient-advance-payment-password-view.html','<div ares-modal-dragable ares-clean-kendo id="patient-advance-payment-password-setting">    <style>        #patient-advance-payment-password-setting .ares-dialog-body {            padding: 20px;        }        #patient-advance-payment-password-setting .info-item-row {            font-size: 0;            width: 300px;            margin-top: 20px;        }            #patient-advance-payment-password-setting .info-item-row .info-item-row-title {                font-size: 14px;                font-weight: 400;                display: inline-block;                vertical-align: middle;                line-height: 20px;                width: 80px;                color: #666a73;                margin: 0;            }            #patient-advance-payment-password-setting .info-item-row .info-item-row-content {                font-size: 14px;                display: inline-block;                vertical-align: middle;                width: 220px;                line-height: 20px;            }    </style>    <div class="modal-header ares-dialog-header">        <button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">&times;</span></button>        <h4 class="modal-title">储值卡密码设置</h4>    </div>    <div class="modal-body ares-dialog-body">        <patient-advance-payment-base-info-view patient-name="name"                                                principal-balance="balance"                                                present-price="presentPrice"></patient-advance-payment-base-info-view>        <div class="info-item-row">            <label class="info-item-row-title">消费密码：</label>            <div class="info-item-row-content">                <input type="password" id="cardCode" ng-model="cardCode" ng-trim="false"                       ng-keyup="cardCodeInput()" ng-required="true"                       class="form-control"                       placeholder="请输入密码" />            </div>        </div>        <div class="info-item-row">            <label class="info-item-row-title">确认密码：</label>            <div class="info-item-row-content">                <input type="password" class="form-control" ng-trim="false"                       id="affirmCardCode" ng-keyup="affirmCardCodeInput()"                       ng-required="true" ng-model="affirmCardCode"                       placeholder="请再次输入密码" />            </div>        </div>    </div>    <div class="modal-footer ares-dialog-footer" style="padding:5px;text-align:center">        <button class="btn btn-primary" ng-click="sure()">确定</button>        <button class="btn btn-default" ng-click="cancel()">关闭</button>    </div></div>');templateCache.put('/app/gift/dialogs/patient-membership-transaction-dialog/patient-membership-transaction-view.html','<div id="patient-membership-transaction-list-wrap" class="enyo enyo-gift">    <style>        #patient-membership-transaction-list-wrap {            height: 100%;        }            #patient-membership-transaction-list-wrap table {                table-layout: fixed;            }            #patient-membership-transaction-list-wrap .row-cell {                margin-right: 10px;            }            #patient-membership-transaction-list-wrap .timer-range-picker-wrapper .show-timer > i {                line-height: 20px;            }            #patient-membership-transaction-list-wrap .common-search-content {                height: 32px;                margin: 10px 0;            }            #patient-membership-transaction-list-wrap .highlevel-search-content {                height: 42px;                padding: 5px 10px;                margin: 10px 0;                background-color: #e0faff;            }            #patient-membership-transaction-list-wrap .enyo-table-header-primary th {                border-right: 1px solid #fff;            }                #patient-membership-transaction-list-wrap .enyo-table-header-primary th:last-child {                    border: none;                }            #patient-membership-transaction-list-wrap .transaction-list-table {                margin: 0;            }            #patient-membership-transaction-list-wrap .transaction-list-table-body {                border: 1px solid #CFDBDD;                border-top: none;            }                #patient-membership-transaction-list-wrap .transaction-list-table-body tr {                    border: none;                }                    #patient-membership-transaction-list-wrap .transaction-list-table-body tr td {                        height: 48px;                        border-right: 1px solid #CFDBDD;                        border-bottom: 1px solid #CFDBDD;                    }                        #patient-membership-transaction-list-wrap .transaction-list-table-body tr td:last-child {                            border-right: none;                        }                #patient-membership-transaction-list-wrap .transaction-list-table-body td .status-text {                    width: calc(100% + 20px);                    height: 100%;                    margin: 0 -10px;                    line-height: 48px;                    text-align: left;                    text-indent: 10px;                }                #patient-membership-transaction-list-wrap .transaction-list-table-body .status-text-pending {                    background-color: #fffcf3;                    color: #f7871d;                }                #patient-membership-transaction-list-wrap .transaction-list-table-body .status-text-reject {                    background-color: #feebe7;                    color: #ff4b3d;                }                #patient-membership-transaction-list-wrap .transaction-list-table-body .status-text-approved,                #patient-membership-transaction-list-wrap .transaction-list-table-body .status-text-adjusted {                    background-color: #e8fff2;                    color: #2dcb73;                }            #patient-membership-transaction-list-wrap .transaction-list-table-page {                height: 28px;                margin: 15px 0;                text-align: center;            }    </style>    <div class="common-search-content row">        <div class="row-cell">            <label class="control-label">处理时间</label>            <timer-range-picker class="transaction-date-time-range row-cell"                                range-placeholder="触发起始时间 至 触发接受时间"                                time-range-date="transactionTimeSpan"></timer-range-picker>        </div>        <div class="row-cell">            <select class="form-control transaction-mode-drop-down"                    kendo-drop-down-list ng-model="criteria.applyMode">                <option value="all">全部变动类型</option>                <option value="1">开卡</option>                <option value="2">升级</option>                <option value="3">降级</option>                <option value="4">注销</option>            </select>        </div>        <div class="row-cell">            <button class="btn btn-primary" ng-click="searchTransaction()">查询</button>        </div>    </div>    <div class="transaction-list-table row">        <table class="enyo-table-header-primary">            <thead>                <tr>                    <th style="width:120px;">会员卡号</th>                    <th style="width:100px;">变动前等级</th>                    <th style="width:100px;">变动后等级</th>                    <th style="width:80px;">处理诊所</th>                    <th style="width:120px;">处理时间</th>                    <th style="width:80px;">变动类型</th>                    <th style="width:80px;">操作人</th>                </tr>            </thead>        </table>        <div class="transaction-list-table-body">            <table class="enyo-table-primary">                <tbody>                    <tr ng-repeat="transactionItem in membershipTypeTransactions">                        <td style="width:120px;">{{transactionItem.membershipCardNumber }}</td>                        <td style="width:100px;">{{ transactionItem.fromTypeName}}</td>                        <td style="width:100px;" ng-bind-html="transactionItem.toTypeName"></td>                        <td style="width:80px;">{{ transactionItem.officeName }}</td>                        <td style="width:120px;">{{ transactionItem.transactionTimeeStr }}</td>                        <td style="width:80px;">{{ transactionItem.applyModeStr }}</td>                        <td style="width:80px;">{{ transactionItem.operatorName }}</td>                    </tr>                </tbody>            </table>        </div>    </div>    <div class="transaction-list-table-page lc-table-footer row">        <div pagination total-items="totalCount"             items-per-page="criteria.pageSize"             ng-model="criteria.pageIndex" ng-change="searchTransaction()"             max-size="10"             first-text="第一页"             previous-text="前一页"             next-text="后一页"             last-text="最后一页"             rotate="true"             class="pagination new-page-color" boundary-links="true" style="margin:0;"></div>        <ul class="pagination new-page-color pagination-to-page" style="margin:0">            <li class="disabled">                <a style="padding: 0;padding-left: 5px;padding-right: 5px;">                    每页                    <input kendo-numeric-text-box k-min="1" k-max="50"                           k-ng-model="criteria.pageSize"                           style="width:63px;" k-on-change="searchTransaction();"                           k-options="{format: \'#\', decimals:0}" />                    条                </a>            </li>        </ul>        <ul class="pagination" style="margin:0">            <li class="disabled">                <a>共{{ totalCount }}条</a>            </li>        </ul>    </div></div>');templateCache.put('/app/gift/dialogs/patient-point-share-info-dialog/patient-point-share-info-dialog.html','<div ares-clean-kendo class="enyo patient-share-point-wrapper">    <style type="text/css">        .patient-share-point-wrapper .point-text {            color: #00a8cb;        }        .patient-share-point-wrapper .point-td {            text-align: left !important;        }        .patient-share-point-wrapper .point-title {            font-weight: bold;        }    </style>    <div class="enyo-modal-container">        <div class="enyo-modal-header clearfix">            <div class="pull-left enyo-modal-title">共享人积分</div>            <div class="pull-right iconfont icon-guanbi" ng-click="close();"></div>        </div>        <div class="enyo-modal-content" style="padding: 5px;">            <table class="enyo-grid-table placed-center">                <thead>                    <tr>                        <th class="point-td point-title">共享人</th>                        <th class="point-td point-title">积分</th>                    </tr>                </thead>                <tbody>                    <tr>                        <td class="point-td">{{patient.name}}(主卡人)</td>                        <td class="point-text point-td">{{patient.point}}</td>                    </tr>                    <tr ng-repeat="share in membership.shares">                        <td class="point-td">{{share.patient.name}}</td>                        <td class="point-text point-td">{{share.pointValueIncluded?\'已共享积分余额\':share.patient.point}}</td>                    </tr>                </tbody>            </table>        </div>        <div class="enyo-modal-footer" style="padding: 5px;">            <button class="btn btn-primary last-field" ng-click="close()">确定</button>        </div>    </div></div>');templateCache.put('/app/gift/views/membership-home-view.html','<ares-tab states="states" root-state="membershipCenter"></ares-tab>');templateCache.put('/app/gift/views/gift-card/gift-card-edit-view.html','<div ares-modal-dragable ares-clean-kendo>    <div class="modal-header ares-dialog-header">        <button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">&times;</span></button>        <h4 class="modal-title">{{title}}</h4>    </div>    <div class="modal-body ares-dialog-body">        <div class="panel-body" style="margin-left: -20px;">            <form name="giftCardForm" id="giftCardForm" class="form-horizontal" novalidate style="margin-left:25px;">                <div class="form-group">                    <label class="col-sm-3 control-label">卡号 <span style="color:red">*</span></label>                    <div class="col-sm-5">                        <input class="form-control" name="cardNo" ng-model="giftCard.cardNo" ng-disabled="isEditMode || isRefundMode || isChargeMode" />                    </div>                </div>                <div class="form-group">                    <label class="col-sm-3 control-label">有效期 <span style="color:red">*</span></label>                    <div class="col-sm-5">                        <select id="daysBeforeTodayInput" class="not-ignore" ng-model="publishDate"                                kendo-drop-down-list style=" width:70px"                                ng-disabled="isRefundMode || isChargeMode">                            <option value="1" selected>1年</option>                            <option value="2">2年</option>                            <option value="3">3年</option>                        </select>                        <input id="startDatePicker" type="text" class="form-control" kendo-date-picker                               k-ng-model="giftCard.expiredDate" k-format="\'yyyy-MM-dd\'"                               k-parse-formats="[\'yyyyMMdd\']" style="width: 130px;"                               ng-disabled="isRefundMode || isChargeMode">                    </div>                </div>                <div class="form-group">                    <label class="col-sm-3 control-label">初始金额 <span style="color:red">*</span></label>                    <div class="col-sm-5">                        <input style="width:120px;" kendo-numeric-text-box k-min="0" k-max="999999999"                               k-ng-model="giftCard.initialAmount"                               k-on-change="onAmountChange(kendoEvent,$index)"                               ng-disabled="isEditMode || isRefundMode || isChargeMode" />                    </div>                </div>                <div class="form-group" ng-if="isRefundMode">                    <label class="col-sm-3 control-label">退费金额 <span style="color:red">*</span></label>                    <div class="col-sm-4">                        <input style="width:120px;" kendo-numeric-text-box                                k-max="giftCard.principalBalance" k-min="1"                               k-ng-model="refundParam.refundAmount" />                    </div>                    <div class="col-sm-5">                        <span>剩余优惠金额 {{ giftCard.giftBalance | toMoney }}</span>                    </div>                </div>                <div class="form-group" ng-if="isChargeMode">                    <label class="col-sm-3 control-label">充值金额 <span style="color:red">*</span></label>                    <div class="col-sm-5">                        <input style="width:120px;" kendo-numeric-text-box                               k-min="1" k-max="1000000"                               k-ng-model="refundParam.chargeAmount" />                    </div>                </div>                <div class="form-group">                    <label class="col-sm-3 control-label">支付方式 <span style="color:red">*</span></label>                    <div class="col-sm-5">                        <input id="payType" type="text" class="form-control" />                    </div>                </div>                <div class="form-group">                    <label class="col-sm-3 control-label">患者售价</label>                    <div class="col-sm-5">                        <input style="width: 120px;" kendo-numeric-text-box k-min="0" k-max="999999999"                               k-on-change="onChangePrice()"                               k-ng-model="giftCard.price" ng-disabled="isEditMode || isRefundMode || isChargeMode " />                    </div>                </div>                <div class="form-group" ng-hide="isEditMode || isRefundMode || isChargeMode">                    <input style="margin-left: 160px" type="checkbox" ng-model="writeICCard" />&nbsp;写入IC卡                </div>            </form>        </div>    </div>    <div class="modal-footer ares-dialog-footer">        <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>        <button type="button" class="btn btn-primary" ng-click="save()">确定</button>    </div>    <notification-upload-success></notification-upload-success></div>');templateCache.put('/app/gift/views/gift-card/gift-card-list-view.html','<div class="ares-main-content" ares-clean-kendo>    <div style="margin-top:10px;">        <table style="width:100%">            <tr>                <!--<td style="width:120px"><h1 style="margin:0">医生收费明细</h1></td>-->                <td style="width:120px">                    <label class="radio-inline">                        <input type="radio" name="dateRadio" ng-value="1" ng-model="selectedDate">开卡时间                    </label><br />                    <label class="radio-inline">                        <input type="radio" name="dateRadio" ng-value="2" ng-model="selectedDate">失效时间                    </label><br />                    <label class="radio-inline">                        <input type="radio" name="dateRadio" ng-value="3" ng-model="selectedDate">上次使用时间                    </label>                </td>                <td style="width: 100px;padding-right: 10px;">                    <select id="daysBeforeTodayInput" class="not-ignore" kendo-drop-down-list style=" width:100px;">                        <option value="0">本日</option>                        <option value="week">本周</option>                        <option value="month" selected>本月</option>                        <option value="自定义">自定义</option>                    </select>                </td>                <td class="isHideData" style="width: 130px;">                    <input id="startDatePicker" type="text" class="form-control" kendo-date-picker k-ng-model="timeSpan.startDate" k-format="\'yyyy-MM-dd\'" k-parse-formats="[\'yyyyMMdd\']" style="width: 130px;">                </td>                <td class="isHideData" style="padding-left: 5px; padding-right: 5px; width:20px"><label>-</label></td>                <td class="isHideData" style="width: 150px; ">                    <input id="endDatePicker" type="text" class="form-control" kendo-date-picker k-ng-model="timeSpan.endDate" k-format="\'yyyy-MM-dd\'" k-parse-formats="[\'yyyyMMdd\']" style="width: 130px; ">                </td>                <td style="width:120px">                    <label class="radio-inline">                        <input type="radio" name="amountRadio" ng-value="1" ng-model="selectedAmount">初始金额                    </label><br />                    <label class="radio-inline">                        <input type="radio" name="amountRadio" ng-value="2" ng-model="selectedAmount">当前余额                    </label><br />                    <label class="radio-inline">                        <input type="radio" name="amountRadio" ng-value="3" ng-model="selectedAmount">上次消费金额                    </label>                </td>                <td style="width: 100px;">                    <input style="width:100px;" kendo-numeric-text-box k-min="0" k-max="999999999"                           k-ng-model="criteria.minAmount"                           k-on-change="onMinAmountChange(kendoEvent,$index)" />                </td>                <td style="padding-left: 5px; padding-right: 5px;width:20px"><label>-</label></td>                <td style="width: 120px; ">                    <input style="width:100px;" kendo-numeric-text-box k-min="0" k-max="999999999"                           k-ng-model="criteria.maxAmount"                           k-on-change="onMaxAmountChange(kendoEvent,$index)" />                </td>                <td style="width:170px;" align="left">                    <input type="text" class="form-control" style="display:initial;max-width:137px" placeholder="请输入卡号或读卡" ng-model="criteria.cardNo" />                    <a ng-click="readCardNo()">读卡</a>                </td>                <td>                    <button type="button" class="btn btn-default" ares-slow-click="searchBtnClick()" style="margin-left:20px;">                        <span class="glyphicon glyphicon-search" aria-hidden="true"></span> 查询                    </button>                    <button type="button" class="btn btn-default" ng-click="add()">                        <span class="glyphicon glyphicon-credit-card" aria-hidden="true"></span> 发卡                    </button>                    <button type="button" class="btn btn-default" ares-slow-click="exportExcel()" ares-authorize="membership.giftCardExcel">                        <span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span> 导出Excel                    </button>                </td>            </tr>        </table>        <div id="giftCardList" style="margin-top : 20px;">        </div>    </div>    <notification-upload-success></notification-upload-success></div>');templateCache.put('/app/gift/views/gift-card/gift-card-transaction-view.html','<div ares-modal-dragable ares-clean-kendo>    <div class="modal-header ares-dialog-header">        <button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">&times;</span></button>        <h4 class="modal-title">消费记录查询</h4>    </div>    <div class="modal-body ares-dialog-body">        <div id="giftCardBaseInfo" class="row">            <div class="form-group col-md-2">                <label class=" control-label">卡号</label>                <label class="control-content ng-binding" style="margin-left:5px">{{giftCard.cardNo}}</label>            </div>            <div class="form-group col-md-3">                <label class=" control-label">发卡时间</label>                <label class="control-content ng-binding" style="margin-left:5px">{{giftCard.publishDate}}</label>            </div>            <div class="form-group col-md-3">                <label class=" control-label">失效时间</label>                <label class="control-content ng-binding" style="margin-left:5px">{{giftCard.expiredDate}}</label>            </div>            <div class="form-group col-md-2">                <label class=" control-label">初始金额</label>                <label class="control-content ng-binding" style="margin-left:5px">{{giftCard.initialAmount}}</label>            </div>            <div class="form-group col-md-2">                <label class=" control-label">当前余额</label>                <label class="control-content ng-binding" style="margin-left:5px">{{giftCard.balance}}</label>            </div>        </div>        <table id="searchCriteria" style="width:100%;padding-left: 10px;">            <tr>                <td style="width: 210px;padding-left: 10px;">                    <label>消费时间</label>                    <input id="startDatePicker" type="text" class="form-control"                           kendo-date-picker ng-model="searchCriteria.startDate"                           k-format="\'yyyy-MM-dd\'" k-parse-formats="[\'yyyy-MM-dd\']" style="width: 130px;">                </td>                <td style="padding-left: 5px;width: 20px;" ng-hide="defaultSelect">-</td>                <td style="width: 130px; " ng-hide="defaultSelect">                    <input id="endDatePicker" type="text" class="form-control"                           kendo-date-picker ng-model="searchCriteria.endDateStr"                           k-format="\'yyyy-MM-dd\'" k-parse-formats="[\'yyyy-MM-dd\']" style="width: 130px; ">                </td>                <td style="padding:0 20px;width:225px">                    <label>消费患者</label>                    <input id="used-patient-list" style="width:120px;">                </td>                <td>                    <button type="button" class="btn btn-default" ares-slow-click="search()">                        <span class="glyphicon glyphicon-search" aria-hidden="true"></span> 查询                    </button>                </td>            </tr>        </table>        <div id="gift-card-transaction-table" style="margin-top:5px"></div>    </div>    <div class="modal-footer ares-dialog-footer">    </div></div>');templateCache.put('/app/gift/views/gift-certificate/membership-gift-certificate-detail-view.html','<div class="ares-main-content enyo" id="gift-certificate-transactions" ares-clean-kendo>    <style>        #gift-certificate-transactions .grid-command-glyphicon {            display: inline-block;            font-size: 18px;            width: 22px;            height: 22px;            padding: 3px;            line-height: 22px;            vertical-align: middle;        }        #gift-certificate-transactions a {            color: #777;        }        #gift-certificate-transactions thead a {            color: #fff;        }        #gift-certificate-transactions .text-overflow-ellipsis {            display: -webkit-box;            overflow: hidden;            width: 100%;            -webkit-line-clamp: 2;            -webkit-box-orient: vertical;        }    </style>    <div style="margin-top:10px;">        <div>            <table>                <tr>                    <!--<td style="width:120px"><h1 style="margin:0">收入明细</h1></td>-->                    <td style="width: 85px">                        <label class="radio-inline">                            <input type="radio" name="dateType" ng-value="true" ng-model="isByUseDate">领用日期                        </label><br />                        <label class="radio-inline">                            <input type="radio" name="dateType" ng-value="false" ng-model="isByUseDate">到期日期                        </label>                    </td>                    <td style="padding-left: 5px; padding-right: 5px;">                        <select id="dataInput" class="not-ignore" kendo-drop-down-list style=" width:85px">                            <option value="0">本日</option>                            <option value="week">本周</option>                            <option value="month">本月</option>                            <option value="自定义">自定义</option>                        </select>                    </td>                    <td class="isHideData" style="width: 125px">                        <input id="startDatePicker" type="text" class="form-control" kendo-date-picker k-ng-model="timeSpan.startDate" k-format="\'yyyy-MM-dd\'" k-parse-formats="[\'yyyyMMdd\']" style="width: 125px;">                    </td>                    <td class="isHideData" style="padding-left: 5px; padding-right: 5px;"><label>-</label></td>                    <td class="isHideData" style="width: 125px; ">                        <input id="endDatePicker" type="text" class="form-control" kendo-date-picker k-ng-model="timeSpan.endDate" k-format="\'yyyy-MM-dd\'" k-parse-formats="[\'yyyyMMdd\']" style="width: 125px; ">                    </td>                    <td style="padding-left: 5px; padding-right: 5px; width:150px">                        <input class="form-control" ng-model="patientSearchKeyWord" placeholder="姓名/病历号/电话">                    </td>                    <td style="padding-left: 5px; padding-right: 5px; width:150px">                        <input class="form-control" ng-model="searchCertificateName" placeholder="卡券名称">                    </td>                    <td style="padding-left: 5px; padding-right: 5px; width:150px">                        <input class="form-control" ng-model="contributorName" placeholder="经办人">                    </td>                    <td>                        <base-multi-select-box-view class="approval-actors-select"                                                    style="width:180px;display: inline-block; vertical-align: middle; font-size: 14px; "                                                    bind-selected-value-arr-field="selectedStatus"                                                    bind-data-source="giftTransactionStatus"                                                    source-value-field="showName"                                                    source-display-field="showName"                                                    source-text-field="showName"                                                    placeholder="状态"                                                    max-selected-items="1000"></base-multi-select-box-view>                    </td>                    <td>                        <button type="button" class="btn btn-default" ares-slow-click="search()" style="margin-left:5px;">                            <span class="glyphicon glyphicon-search" aria-hidden="true"></span> 查询                        </button>                        <button type="button" class="btn btn-default" ares-slow-click="exportExcel()" ares-authorize="membership.cardDetailExcel">                            导出Excel                        </button>                    </td>                </tr>            </table>        </div>        <div id="giftCertificateDetailList" class="locked-float-right" style="margin-top:10px;">        </div>    </div>    <notification-upload-success></notification-upload-success></div>');templateCache.put('/app/gift/views/gift-certificate/membership-gift-certificate-edit-view.html','<div ares-modal-dragable ares-clean-kendo class="enyo" id="membership-gift-certificate-edit-wrap">    <style>        #membership-gift-certificate-edit-wrap.enyo .panel .panel-heading {            padding: 5px;        }        #membership-gift-certificate-edit-wrap.enyo .enyo-table-secondary tbody tr td {            height: 40px;        }        #membership-gift-certificate-edit-wrap.enyo .enyo-table-secondary thead tr th {            height: 32px;        }        #membership-gift-certificate-edit-wrap.enyo .enyo-table-secondary tbody tr td {            padding: 0 5px;        }        #membership-gift-certificate-edit-wrap.enyo .enyo-table-secondary thead tr th {            padding-left: 5px;        }        #membership-gift-certificate-edit-wrap.enyo table.enyo-table-secondary .name-cell {            min-width: 130px;        }        #membership-gift-certificate-edit-wrap.enyo table.enyo-table-secondary .action-cell {            width: 60px;        }        #membership-gift-certificate-edit-wrap.enyo table.enyo-table-secondary .code-cell {            width: 70px;        }        #membership-gift-certificate-edit-wrap.enyo table.enyo-table-secondary .input-cell {            width: 130px;        }        #membership-gift-certificate-edit-wrap.enyo table.enyo-table-secondary .name-lg-cell {            width: 230px;        }        #membership-gift-certificate-edit-wrap.enyo table.enyo-table-secondary .price-cell {            width: 100px;        }        #membership-gift-certificate-edit-wrap.enyo table.enyo-table-secondary .unit-cell {            width: 50px;        }        #membership-gift-certificate-edit-wrap.enyo .medium.ares-numeric-input input {            height: 32px;        }        #membership-gift-certificate-edit-wrap.enyo .rule-content {            margin-bottom: 0px;        }        #membership-gift-certificate-edit-wrap .limit-membership-type ul li {            display: inline-block;            border: 1px solid #00A6C9;            line-height: 24px;            margin-top: 3px;            margin-right: 2px;            padding: 0 5px;        }            #membership-gift-certificate-edit-wrap .limit-membership-type ul li a i {                color: #B6B6B6;                margin-left: 5px;            }    </style>    <div class="enyo-modal-container">        <div class="enyo-modal-header clearfix">            <div class="pull-left enyo-modal-title">{{cardType==\'preferential\'?\'编辑优惠卡\':\'编辑优惠方案\'}}</div>            <div class="pull-right iconfont icon-guanbi" ng-click="cancel();"></div>        </div>        <div class="enyo-modal-content" style="height: 610px;overflow:auto;padding:0 15px;">            <div class="panel panel-primary" style="margin-top: 15px;">                <div class="panel-heading">基本信息</div>                <div class="panel-body">                    <form id="BasicInfoForm" name="BasicInfoForm" class="form-horizontal">                        <div class="form-group">                            <label for="name" class="control-label col-sm-2" style="color:red">名称*</label>                            <div class="col-sm-10 input-container">                                <input id="name" name="name" class="form-control" maxlength="30" ng-model="giftCertificate.certificateName"                                       autofocus ng-disabled="getDisableOfSpecialAccount()" />                            </div>                        </div>                        <div class="form-group" ng-hide="(giftCertificate.giftCertificateType == 0 || giftCertificate.giftCertificateType == 2) && isBrowsedFromDetail">                            <label for="name" class="control-label col-sm-2" style="color:red">数量*</label>                            <div class="col-sm-10 input-container">                                <input kendo-numeric-text-box k-min="0" k-max="99999999"                                       k-ng-model="giftCertificate.count" style="width:100px;"                                       k-on-change="onCountChange(kendoEvent)"                                       k-options="{format: \'#\', decimals:0}"                                       ng-disabled="getDisableOfSpecialAccount()" />                            </div>                        </div>                        <div class="form-group">                            <label for="name" class="control-label col-sm-2" style="color:red">发布时间段*</label>                            <div class="col-sm-3 input-container">                                <input id="startDatePicker" type="text" class="form-control"                                       kendo-date-time-picker k-ng-model="timeSpan.startDate"                                       k-format="\'yyyy-MM-dd HH:mm\'" k-parse-formats="[\'yyyyMMdd\']"                                       style="width: 190px;" ng-disabled="getDisableOfSpecialAccount()">                            </div>                            <label class="control-label col-sm-1" style="margin-left:-10px; text-align:center;">至</label>                            <div class="col-sm-4 input-container">                                <input id="endDatePicker" type="text" class="form-control"                                       kendo-date-time-picker k-ng-model="timeSpan.endDate"                                       k-format="\'yyyy-MM-dd HH:mm\'" k-parse-formats="[\'yyyyMMdd\']"                                       style="width: 190px;" ng-disabled="getDisableOfSpecialAccount()">                            </div>                        </div>                        <div class="form-group">                            <label for="name" class="control-label col-sm-2" style="color:red;padding-left:0px;">有效天数*</label>                            <div class="col-sm-3 input-container" style="width:122px; padding-right:0px;">                                <input kendo-numeric-text-box k-min="-1" k-max="36500"                                       k-ng-model="giftCertificate.expireDays"                                       style="width:100px;" k-on-change="onExpireDaysChange(kendoEvent)"                                       k-options="{format: \'#\', decimals:0}" ng-disabled="getDisableOfSpecialAccount()" /> 天                            </div>                            <label class="control-label col-sm-2" style="padding:7px 5px;">                                <input type="checkbox" ng-model="effectStartTimeEnabled"                                       ng-click="changeEffectStartTimeEnabled()"                                       ng-disabled="getDisableOfSpecialAccount()" />                                <span>有效期开始时间</span>                            </label>                            <div class="col-sm-5 input-container">                                <input id="startDatePicker" type="text" class="form-control"                                       kendo-date-time-picker k-ng-model="timeSpan.effectStartTime"                                       k-format="\'yyyy-MM-dd HH:mm\'" k-parse-formats="[\'yyyyMMdd\']"                                       style="width: 190px;" ng-disabled="getDisableOfSpecialAccount() || !effectStartTimeEnabled">                                <span class="glyphicon glyphicon-info-sign title-description"                                      tooltip="若不设置，则领用时间为有效期开始时间。"                                      tooltip-placement="bottom-left" tooltip-class="ares-tooltip" tooltip-trigger="mouseenter"></span>                            </div>                        </div>                        <div class="form-group" ng-hide="(giftCertificate.giftCertificateType == 0 || giftCertificate.giftCertificateType == 2) && isBrowsedFromDetail">                            <label for="showName" class="control-label col-sm-2" style="color:red">显示名*</label>                            <div class="col-sm-10 input-container">                                <input id="showName" name="showName" class="form-control"                                       ng-model="giftCertificate.showName"                                       autofocus ng-disabled="getDisableOfSpecialAccount()" />                            </div>                        </div>                        <div class="form-group">                            <label for="describe" class="control-label col-sm-2">描述</label>                            <div class="col-sm-10 input-container">                                <textarea class="form-control" ng-model="giftCertificate.describe"                                          rows="3" style="" ng-disabled="getDisableOfSpecialAccount()"                                          id="describe" name="describe" maxlength="2000"></textarea>                            </div>                        </div>                        <div class="form-group" ng-if="transactionId">                            <label for="describe" class="control-label col-sm-2">领用备注</label>                            <div class="col-sm-10 input-container">                                <textarea class="form-control" ng-model="transaction.notes"                                          rows="3" style="" ng-disabled="getDisableOfSpecialAccount()"                                          id="describe" name="describe" maxlength="2000"></textarea>                            </div>                        </div>                    </form>                </div>            </div>            <div class="panel panel-primary" style="margin-top: 15px;">                <div class="panel-heading">规则配置</div>                <div class="panel-body">                    <form id="RuleInfoForm" name="RuleInfoForm" class="form-horizontal">                        <div class="form-group rule-content">                            <label for="receiveLimit" class="control-label col-sm-2">领取限制</label>                            <div class="col-sm-10 input-container">                                <div class="col-sm-2">                                    <input type="radio" class="enyo-radio" id="radio1" name="radio"                                           ng-model="giftCertificate.isMembershipLimited" ng-value="false"                                           ng-disabled="isBrowsed"                                           ng-change="cacelMembershipTypeLimit()">                                    <label class="enyo-radio-label" for="radio1">不限制</label>                                </div>                                <div class="col-sm-2" style="padding:0px;">                                    <input type="radio" class="enyo-radio" id="radio3" name="radio"                                           ng-model="giftCertificate.isMembershipLimited" ng-value="true"                                           ng-disabled="isBrowsed">                                    <label class="enyo-radio-label" for="radio3">仅限会员领用</label>                                </div>                            </div>                        </div>                        <div class="form-group rule-content">                            <label for="receiveLimit" class="control-label col-sm-2">使用限制</label>                            <div class="col-sm-10 input-container">                                <div class="col-sm-10" style="margin:0;line-height:32px;"                                     ng-show="cardType!=\'preferential\' && giftCertificate.giftCertificateType!=1">                                    <input type="checkbox" id="isMultipleUse" class="enyo-checkbox"                                           ng-model="giftCertificate.isMultipleUse"                                           ng-click="isMultipleUseChange()"                                           ng-disabled="isBrowsed">                                    <label for="isMultipleUse" class="enyo-checkbox-label">                                        是否允许多次使用                                    </label>                                </div>                            </div>                            <label class="control-label col-sm-2"></label>                            <div class="col-sm-10 input-container">                                <div class="col-sm-10" style="margin:0;line-height:32px;">                                    <input type="checkbox" id="allShare" class="enyo-checkbox"                                           ng-model="giftCertificate.allowShare"                                           ng-disabled="isBrowsed">                                    <label for="allShare" class="enyo-checkbox-label">                                        是否允许共享(仅限会员共享人)                                    </label>                                </div>                            </div>                        </div>                    </form>                </div>            </div>            <div class="panel panel-primary" ng-if="cardType==\'preferential\'">                <div class="panel-heading">卡内金额</div>                <div class="panel-body" style="margin-left: -20px;">                    <form id="BasicInfoForm" name="BasicInfoForm" class="form-horizontal" style="width:800px">                        <div class="form-group">                            <label for="name" class="control-label col-sm-2" style="color:red">金额 *</label>                            <div class="col-sm-2 input-container" style="margin-right: 0px">                                <input id="name" name="name" class="form-control" maxlength="30" ng-model="giftCertificate.originalPrice"                                       autofocus ng-disabled="isBrowsed" />                            </div>                            <label class="control-label col-sm-1" style="text-align:left;">元</label>                            <div style="height:40px;margin-left:10px;line-height:40px;">                                <input type="checkbox" ng-model="giftCertificate.isMultipleUse"                                       style="width:18px;height:18px;margin:0;vertical-align:middle"                                       ng-click="isMultipleUseChange()"                                       ng-disabled="isBrowsed">                                <label style="vertical-align:middle;margin:0;">                                    卡内金额用尽时不再享受优惠方案                                </label>                            </div>                        </div>                    </form>                </div>            </div>            <div class="panel panel-primary">                <div class="panel-heading">                    优惠方案                </div>                <div class="panel-body gift-plan-detail-body">                    <div class="form-group" style="height:30px;margin-bottom:0;" ng-if="cardType!=\'preferential\'">                        <label for="showName" class="control-label col-sm-2"                               style="color:red;line-height:30px;margin-bottom:0;padding:0 30px 0 0;text-align:right;">优惠类型 *</label>                        <div class="col-sm-6 input-container">                            <div class="col-sm-3" style="padding:0">                                <input type="radio" class="enyo-radio" name="certificateType" ng-value="0" id="giftCertificate-discount"                                       ng-model="giftCertificate.giftCertificateType" ng-disabled="isBrowsed"                                       ng-click="onChangeGiftCertificateType(0)">                                <label class="enyo-radio-label" for="giftCertificate-discount">折扣券</label>                            </div>                            <div class="col-sm-3" style="padding:0">                                <input type="radio" class="enyo-radio" name="certificateType" ng-value="1" id="giftCertificate-combo"                                       ng-model="giftCertificate.giftCertificateType" ng-disabled="isBrowsed"                                       ng-click="onChangeGiftCertificateType(1)">                                <label class="enyo-radio-label" for="giftCertificate-combo">套餐券</label>                            </div>                            <div class="col-sm-3" style="padding:0">                                <input type="radio" class="enyo-radio" name="certificateType" ng-value="2" id="giftCertificate-cash"                                       ng-model="giftCertificate.giftCertificateType" ng-disabled="isBrowsed"                                       ng-click="onChangeGiftCertificateType(2)">                                <label class="enyo-radio-label" for="giftCertificate-cash">现金券</label>                            </div>                        </div>                    </div>                    <div ng-if="giftCertificate.giftCertificateType==0 || giftCertificate.giftCertificateType==3">                        <div class="form-group" style="height:32px;margin:15px 0 0 15px;"                             ng-show="isAllDetailDiscountPlan()">                            <label for="showName" class="control-label col-sm-2">面值</label>                            <div class="col-sm-10 input-container" style="display:inline-block">                                <ares-numeric-input min="0" max="9999999" decimal="2"                                                    disabled="true" class="original-price-input medium"                                                    value="giftCertificate.originalPrice"                                                    emtpy-enable="false" hide-btn="true"                                                    on-blur="onBlurOriginalPriceInput()"                                                    input-width="120px"></ares-numeric-input>                                <span style="padding-left:5px;">元</span>                            </div>                        </div>                        <div class="form-group" style="height:32px;margin:15px 0 0 15px;"                             ng-show="giftCertificate.giftCertificateType==0">                            <label for="showName" class="control-label col-sm-2">建议售价</label>                            <div class="col-sm-10 input-container">                                <ares-numeric-input min="0" max="9999999" decimal="2"                                                    disabled="isBrowsed" class="sale-price-input medium"                                                    value="giftCertificate.planPrice"                                                    emtpy-enable="true" hide-btn="true"                                                    on-blur="onBlurSalePriceInput()"                                                    input-width="120px"></ares-numeric-input>                                <span style="padding-left:5px;">元</span>+                                <ares-numeric-input min="0" max="9999999" decimal="0"                                                    disabled="isBrowsed" class="sale-price-input medium"                                                    value="giftCertificate.planPoint"                                                    emtpy-enable="true" hide-btn="true"                                                    on-blur="onBlurSalePriceInput()"                                                    input-width="120px"></ares-numeric-input>                                <span style="padding-left:5px;">积分</span>                            </div>                        </div>                        <div class="col-sm-12" style="padding:0;margin-top:10px;">                            <a style="color: #00a8cb;line-height: 32px;" ng-click="addDiscountDetail()"                               ng-show="!getDisableOfSpecialAccount()&&(giftCertificate.giftCertificateType==0||giftCertificate.giftCertificateType==3)">                                <i class="iconfont icon-jinakangbaoicons19"></i>                                添加折扣项目                            </a>                            <span id="helpBlock" ng-hide="isBrowsed">请输入0到1之间的小数，如1代表不打折，0.5表示5折,0.85代表85折</span>                        </div>                        <form id="DiscountPlanForm" name="DiscountPlanForm" class="form-horizontal" style="margin:0 -10px;">                            <style scoped>                                .default-discount {                                    color: red;                                }                            </style>                            <table class="enyo-table-secondary" style="margin:0;">                                <thead>                                    <tr>                                        <th class="text-left code-cell">项目编号</th>                                        <th class="text-left name-cell">项目名称</th>                                        <th class="text-left unit-cell">单位</th>                                        <th class="text-left input-cell">单价</th>                                        <th class="text-left price-cell">折扣</th>                                        <th class="text-left input-cell">折后价</th>                                        <th class="text-left price-cell">数量</th>                                        <th class="price-cell" ng-if="isBrowsedFromDetail">剩余数量</th>                                        <th class="text-left action-cell" ng-hide="getDisableOfSpecialAccount()">操作</th>                                    </tr>                                </thead>                                <tbody>                                    <tr ng-repeat="detailplan in giftCertificate.discountPlan.discountPlanDetailList">                                        <td class="code-cell">{{detailplan.itemCode}}</td>                                        <td class="name-cell">{{detailplan.itemName}}</td>                                        <td class="unit-cell">{{ detailplan.unit }}</td>                                        <td class="input-cell">                                            <ares-numeric-input min="0" max="9999999" decimal="2"                                                                disabled="giftCertificate.discountPlan.discountType!=\'handle\'||getDisableOfSpecialAccount()"                                                                value="detailplan.price"                                                                emtpy-enable="true" ng-hide="detailplan.detailType==\'catagory\'"                                                                on-change="onPriceChange(detailplan.price,\'handle\',$index)"                                                                input-width="80px"></ares-numeric-input>                                        </td>                                        <td class="price-cell">                                            <ares-numeric-input min="0" max="1" decimal="2"                                                                disabled="giftCertificate.discountPlan.discountType!=\'handle\'||getDisableOfSpecialAccount()"                                                                on-change="onDiscountChange(detailplan.discount,\'handle\',$index)"                                                                value="detailplan.discount" step="0.1"                                                                input-width="50px"></ares-numeric-input>                                        </td>                                        <td class="input-cell">                                            <ares-numeric-input min="0" max="9999999" decimal="2"                                                                disabled="giftCertificate.discountPlan.discountType!=\'handle\'||getDisableOfSpecialAccount()"                                                                value="detailplan.afterDiscountPrice"                                                                emtpy-enable="true" ng-hide="detailplan.detailType==\'catagory\'"                                                                on-change="onAfterDiscountPriceChange(detailplan.afterDiscountPrice,\'handle\',$index)"                                                                input-width="80px"></ares-numeric-input>                                        </td>                                        <td class="price-cell">                                            <ares-numeric-input min="1" max="9999999" decimal="0"                                                                ng-hide="detailplan.detailType==\'catagory\'"                                                                disabled="getDisableOfSpecialAccount()"                                                                on-change="onMaxCountChange(detailplan.maxCount,\'handle\',$index)"                                                                value="detailplan.maxCount"                                                                input-width="40px"></ares-numeric-input>                                        </td>                                        <td class="price-cell" ng-if="isBrowsedFromDetail">{{detailplan.remainCount}}</td>                                        <td class="action-cell" ng-hide="getDisableOfSpecialAccount()">                                            <button class="btn icon-btn btn-light-yellow btn-xs" ng-show="detailplan.detailType!=\'default\'"                                                    ng-click="deleteDiscountDetail($index)" ng-disabled="giftCertificate.discountPlan.discountType!=\'handle\'">                                                <i class="iconfont icon-shanchu"></i>                                            </button>                                        </td>                                    </tr>                                </tbody>                            </table>                        </form>                        <div class="form-group" ng-show="showTotal" style="height:40px;margin:0;line-height:40px;">                            <label for="totalOriginalPrice" class="control-label col-sm-4" style="margin:0;">总原价:{{totalOriginalPrice|toMoney}}</label>                            <label for="totalDiscountPrice" class="control-label col-sm-4" style="margin:0;">折后总价:{{totalDiscountPrice|toMoney}}</label>                        </div>                    </div>                    <div ng-if="giftCertificate.giftCertificateType==1">                        <div class="form-group" style="height:32px;margin:15px 0 0 15px;">                            <label for="showName" class="control-label col-sm-2">原价</label>                            <div class="col-sm-10 input-container">                                <ares-numeric-input min="0" max="9999999" decimal="2"                                                    disabled="true" class="original-price-input medium"                                                    value="giftCertificate.originalPrice"                                                    emtpy-enable="false" hide-btn="true"                                                    on-blur="onBlurOriginalPriceInput()"                                                    input-width="120px"></ares-numeric-input>                                <span style="padding-left:5px;">元</span>                            </div>                        </div>                        <div class="form-group" style="height:32px;margin:15px 0 0 15px;">                            <label for="showName" class="control-label col-sm-2">建议售价</label>                            <div class="col-sm-10 input-container">                                <ares-numeric-input min="0" max="9999999" decimal="2"                                                    disabled="isBrowsed" class="sale-price-input medium"                                                    value="giftCertificate.planPrice"                                                    emtpy-enable="true" hide-btn="true"                                                    on-blur="onBlurSalePriceInput()"                                                    input-width="120px"></ares-numeric-input>                                <span style="padding-left:5px;">元</span>+                                <ares-numeric-input min="0" max="9999999" decimal="0"                                                    disabled="isBrowsed" class="sale-price-input medium"                                                    value="giftCertificate.planPoint"                                                    emtpy-enable="true" hide-btn="true"                                                    on-blur="onBlurSalePriceInput()"                                                    input-width="120px"></ares-numeric-input>                                <span style="padding-left:5px;">积分</span>                            </div>                        </div>                        <div class="col-sm-12" style="padding:0;margin-top:10px;">                            <a style="color: #00a8cb;line-height: 32px;"                               ng-click="addGiftCertificatePlan()"                               ng-show="!getDisableOfSpecialAccount()&&giftCertificate.giftCertificateType==1">                                <i class="iconfont icon-jinakangbaoicons19"></i>                                添加套餐项目                            </a>                        </div>                        <form id="GiftCertificatePlanForm" name="GiftCertificatePlanForm" class="form-horizontal" style="margin:0 -10px;">                            <style scoped>                                .default-discount {                                    color: red;                                }                            </style>                            <table class="enyo-table-secondary">                                <thead>                                    <tr>                                        <th class="text-left name-cell">项目编号</th>                                        <th class="text-left name-cell">项目名称</th>                                        <th class="text-left name-cell">单位</th>                                        <th class="text-left input-cell">单价</th>                                        <th class="text-left price-cell">数量</th>                                        <th class="text-left action-cell" ng-hide="getDisableOfSpecialAccount()">操作</th>                                    </tr>                                </thead>                                <tbody>                                    <tr ng-repeat="detailplan in giftCertificate.giftCertificatePlans">                                        <td class="name-cell">{{detailplan.itemCode}}</td>                                        <td class="name-cell">{{detailplan.itemName}}</td>                                        <td class="name-cell">{{detailplan.unit}}</td>                                        <td class="input-cell">                                            <ares-numeric-input min="0" max="9999999" decimal="2"                                                                disabled="getDisableOfSpecialAccount()"                                                                value="detailplan.price"                                                                on-change="onPriceChange(detailplan.price, \'handle\', $index)"                                                                input-width="80px"></ares-numeric-input>                                        </td>                                        <td class="price-cell">                                            <ares-numeric-input min="1" max="9999999" decimal="0"                                                                disabled="getDisableOfSpecialAccount()"                                                                on-change="onMaxCountChange(detailplan.maxCount,\'handle\',$index)"                                                                value="detailplan.maxCount"                                                                input-width="40px"></ares-numeric-input>                                        </td>                                        <td class="action-cell" ng-hide="getDisableOfSpecialAccount()">                                            <button class="btn icon-btn btn-light-yellow btn-xs"                                                    ng-click="deleteCertificateDetail($index)">                                                <i class="iconfont icon-shanchu"></i>                                            </button>                                        </td>                                    </tr>                                </tbody>                            </table>                        </form>                        <!--<div style="height:40px;margin:0;line-height:40px;" ng-if="cardType!=\'preferential\'">                            <input type="checkbox" id="isCashMultipleUse" ng-model="giftCertificate.isMultipleUse"                                   style="width:18px;height:18px;margin:0;vertical-align:middle"                                   ng-click="isMultipleUseChange()"                                   ng-disabled="isBrowsed">                            <label for="isCashMultipleUse" style="vertical-align:middle;font-size:18px;font-weight:bold;color:#999;margin:0;">                                是否允许多次使用                            </label>                        </div>-->                    </div>                    <div ng-if="giftCertificate.giftCertificateType==2">                        <div class="form-group" style="height:32px;margin:15px 0 0 15px;">                            <label for="showName" class="control-label col-sm-2">原价</label>                            <div class="col-sm-10 input-container">                                <ares-numeric-input min="0" max="9999999" decimal="2"                                                    disabled="isBrowsed" class="original-price-input medium"                                                    value="giftCertificate.originalPrice"                                                    emtpy-enable="false" hide-btn="true"                                                    on-blur="onBlurOriginalPriceInput()"                                                    input-width="120px"></ares-numeric-input>                                <span style="padding-left:5px;">元</span>                            </div>                        </div>                        <div class="form-group" style="height:32px;margin:15px 0 0 15px;">                            <label for="showName" class="control-label col-sm-2">建议售价</label>                            <div class="col-sm-10 input-container">                                <ares-numeric-input min="0" max="9999999" decimal="2"                                                    disabled="isBrowsed" class="sale-price-input medium"                                                    value="giftCertificate.planPrice"                                                    emtpy-enable="true" hide-btn="true"                                                    on-blur="onBlurSalePriceInput()"                                                    input-width="120px"></ares-numeric-input>                                <span style="padding-left:5px;">元</span>+                                <ares-numeric-input min="0" max="9999999" decimal="0"                                                    disabled="isBrowsed" class="sale-price-input medium"                                                    value="giftCertificate.planPoint"                                                    emtpy-enable="true" hide-btn="true"                                                    on-blur="onBlurSalePriceInput()"                                                    input-width="120px"></ares-numeric-input>                                <span style="padding-left:5px;">积分</span>                            </div>                            <label for="showName" class="control-label col-sm-2" ng-show="isBrowsedFromDetail">剩余金额</label>                            <div class="col-sm-4 input-container">                                <input type="text" ng-model="giftCertificate.remainAmount" class="form-control" ng-show="isBrowsedFromDetail" ng-disabled="isBrowsed" style="width: 150px; display: inline-block" />                                <span ng-show="isBrowsedFromDetail" style="padding-left:5px;">元</span>                            </div>                        </div>                        <div class="col-sm-12" style="padding:0;margin-top:10px;">                            <a style="color: #00a8cb;line-height: 32px;"                               ng-click="addLimitDetail()"                               ng-show="!getDisableOfSpecialAccount()&&giftCertificate.giftCertificateType==2">                                <i class="iconfont icon-jinakangbaoicons19"></i>                                添加项目限制                            </a>                        </div>                        <form id="GiftCertificateLimits" name="GiftCertificateLimits" class="form-horizontal" style="margin:0 -10px;">                            <style scoped>                                .default-discount {                                    color: red;                                }                            </style>                            <table class="enyo-table-secondary">                                <thead>                                    <tr>                                        <th class="text-left name-cell">项目编号</th>                                        <th class="text-left name-lg-cell">项目名称</th>                                        <th class="text-left name-cell">单位</th>                                        <th class="text-left name-cell">类型</th>                                        <th class="text-left action-cell" ng-hide="isBrowsed">操作</th>                                    </tr>                                </thead>                                <tbody>                                    <tr ng-repeat="limit in giftCertificate.giftCertificateLimits">                                        <td class="name-cell">{{limit.itemCode}}</td>                                        <td class="name-lg-cell">{{limit.itemName}}</td>                                        <td class="name-cell">{{limit.unit}}</td>                                        <td class="name-cell">{{limit.detailType|toDiscountHandleType}}</td>                                        <td class="action-cell" ng-hide="isBrowsed">                                            <button class="btn icon-btn btn-light-yellow btn-xs"                                                    ng-click="deleteCertificateLimit($index)">                                                <i class="iconfont icon-shanchu"></i>                                            </button>                                        </td>                                    </tr>                                </tbody>                            </table>                        </form>                    </div>                </div>            </div>            <div class="panel panel-primary" ng-if="giftCertificate.giftCertificateType!=3 && offices.length>1">                <div class="panel-heading">                    指定可使用诊所                </div>                <div class="panel-body">                    <div style="margin-left:20px;">                        <div class="form-group">                            <div class="col-sm-10 input-container">                                <label class="checkbox inline" style="display:inline;margin-left:20px">                                    <input type="checkbox" ng-model="giftCertificate.isOfficeLimited"                                           ng-disabled="isBrowsed && !isEditPublishedCretificate"                                           ng-click="isOfficeLimitedChange()" />                                    是否启动卡券诊所限制                                </label>                            </div>                        </div>                        <div class="form-group" ng-show="giftCertificate.isOfficeLimited">                            <div class="col-sm-10 input-container">                                <label class="checkbox inline" style="display:inline;margin-left:20px">                                    <input type="checkbox" ng-model="giftCertificate.isAllSelect" ng-change="onAllSelected()" ng-disabled="isBrowsed && !isEditPublishedCretificate" />全选                                </label>                            </div>                        </div>                        <div class="col-sm-10" style="border: 1px solid #efefef;margin-top:5px;" ng-show="giftCertificate.isOfficeLimited">                            <div>                                <div ng-repeat="office in offices">                                    <label class="checkbox inline" style="display:inline;margin-left:20px">                                        <input type="checkbox" ng-model="office.isSelected" ng-change="onOfficeSelected()" ng-disabled="isBrowsed && !isEditPublishedCretificate" />{{office.name}}                                    </label>                                </div>                            </div>                        </div>                    </div>                </div>            </div>        </div>        <div class="enyo-modal-footer" ng-hide="isBrowsed && !isEditPublishedCretificate"             style="text-align:center;padding:10px 0;">            <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>            <button type="button" class="btn btn-primary" ng-click="validAndSave()">确定</button>        </div>    </div></div>');templateCache.put('/app/gift/views/gift-certificate/membership-gift-certificate-receive-view.html','<div ares-modal-dragable ares-clean-kendo class="enyo">    <div class="enyo-modal-container">        <div class="enyo-modal-header clearfix">            <div class="pull-left enyo-modal-title">{{title}}</div>            <div class="pull-right iconfont icon-guanbi" ng-click="cancel();"></div>        </div>        <div class="enyo-modal-content" style="padding: 10px 15px 0;">            <form id="mainForm" name="mainForm" class="form-horizontal">                <div class="control-group">                    <div class="form-group" ng-show="giftCertificate.giftCertificateType!=3 && !isMembershipLimit">                        <label for="name" class="control-label col-sm-3">领用类型</label>                        <div class="col-sm-9 input-container radio-type">                            <div class="col-sm-3" style="padding:0">                                <input type="radio" class="enyo-radio" name="publishType" ng-value="0"                                       ng-click="switchGiftCertificateDrawType(\'记名\')" id="publishType1"                                       ng-model="draw.type" ng-disabled="editing">                                <label class="enyo-radio-label" for="publishType1">记名</label>                            </div>                            <div class="col-sm-3" style="padding:0">                                <input type="radio" class="enyo-radio" name="publishType" ng-value="1"                                       ng-click="switchGiftCertificateDrawType(\'不记名\')" id="publishType2"                                       ng-model="draw.type" ng-disabled="editing">                                <label class="enyo-radio-label" for="publishType2">不记名</label>                            </div>                            <div class="col-sm-3" style="padding:0" ng-show="!isFromCharge" ares-authorize="membership.batchPublish">                                <input type="radio" class="enyo-radio" name="publishType" ng-value="2"                                       ng-click="switchGiftCertificateDrawType(\'批量不记名\')" id="publishType3"                                       ng-model="draw.type" ng-disabled="editing">                                <label class="enyo-radio-label" for="publishType3">批量不记名</label>                            </div>                        </div>                    </div>                    <div class="form-group" ng-show="isMembershipLimit">                        <label for="name" class="control-label col-sm-3">领用限制说明</label>                        <label class="col-sm-9 control-label"                               style="text-align: left;padding-left: 0;">                            仅限会员可领取                        </label>                    </div>                    <div class="form-group" ng-show="isFromCharge">                        <label for="giftCertificate" class="control-label col-sm-3">卡券</label>                        <div class="col-sm-9 input-container">                            <input id="giftCertificates" class="form-control" style="min-width:280px;" />                        </div>                    </div>                    <div class="form-group" ng-show="draw.type==0 && !editing">                        <label for="name" class="control-label col-sm-3">领用客户</label>                        <div class="col-sm-9 input-container">                            <ares-patient-search search-string="patientName" ng-model="patient"                                                 on-patient-selected="onPatientSelected"                                                 on-patient-cleared="onPatientCleared"                                                 is-global-search="false"                                                 watermark="姓名/拼音/手机/病历号/会员号"></ares-patient-search>                        </div>                    </div>                    <div class="form-group" ng-show="patientMembershipType && isMembershipLimit">                        <label for="name" class="control-label col-sm-3">会员类型</label>                        <label class="col-sm-9 control-label"                               style="text-align: left;padding-left: 0;">                            {{ patientMembershipType.name }}                        </label>                    </div>                    <div class="form-group">                        <label for="name" class="control-label col-sm-3">有效期</label>                        <div class="col-sm-5 input-container">                            <input id="validStartDatePicker" type="text" class="form-control"                                   kendo-date-time-picker k-ng-model="validStartTime"                                   k-change="giftTranStartDateChange"                                   k-format="\'yyyy-MM-dd HH:mm\'" k-parse-formats="[\'yyyyMMdd\']"                                   style="width: 190px;">                        </div>                        <label class="control-label col-sm-1" style="margin-left:-10px; text-align:center;">至</label>                        <div class="col-sm-9 input-container" style="margin-left:126px; margin-top:15px;">                            <input id="validEndDatePicker" type="text" class="form-control"                                   kendo-date-time-picker k-ng-model="validEndTime"                                   k-change="giftTranEndDateChange"                                   k-format="\'yyyy-MM-dd HH:mm\'" k-parse-formats="[\'yyyyMMdd\']"                                   style="width: 190px;">                        </div>                    </div>                    <div class="form-group" ng-show="(draw.type==1||draw.type==2)&&!editing">                        <label class="control-label col-sm-3" for="receiverId">领用员工</label>                        <div class="col-sm-5 input-container">                            <input id="receivers" />                        </div>                    </div>                    <div class="form-group" ng-show="(draw.type!=2||giftCertificate.giftCertificateType==3)&&!editing">                        <label for="name" class="control-label col-sm-3">卡券编号</label>                        <div class="col-sm-9 input-container">                            <input id="name" name="name" class="form-control"                                   ng-model="draw.cardNo" ng-disabled="editing"                                   ng-change="cardNoChange()" />                        </div>                        <p class="col-sm-9 col-sm-offset-3 input-container">                            卡券编号只能包含数字，字母，-_ 和 () []                        </p>                    </div>                    <!--批量发券-->                    <div class="form-group" ng-show="draw.type==2&&!editing">                        <label for="name" class="control-label col-sm-3">卡券编号</label>                        <div class="col-sm-6 input-container">                            <textarea id="batchCardNos" name="name" class="form-control"                                      ng-model="strBatchCardNos"                                      readonly="readonly"                                      style="height:150px; overflow-x:hidden;">                                                   </textarea>                        </div>                        <div class="input-container">                            <button type="button" class="btn btn-primary"                                    id="upload-button">                                Excel导入                            </button>                            <input type="file" style="display:none"                                   id="gift-certificate-import">                            <a style="float:left;margin-top:5px;"                               href="http://ares-doc.oss-cn-hangzhou.aliyuncs.com/template/%E4%BC%98%E6%83%A0%E5%88%B8%E6%89%B9%E9%87%8F%E7%BC%96%E7%A0%81%E6%A8%A1%E6%9D%BF.xls">下载excel模板</a>                        </div>                        <p class="col-sm-9 col-sm-offset-3 input-container">                            卡券编号只能包含数字，字母，-_ 和 () []                        </p>                        <p class="col-sm-9 col-sm-offset-3 input-container" style="margin-bottom:0">                            批量发券暂时一次只支持500张.                        </p>                    </div>                    <div class="form-group" ng-show="draw.type==2&&!editing">                        <label class="control-label col-sm-3" for="price">发券数量</label>                        <div class="col-sm-5 input-container">                            <label class="control-label">{{importGiftCertificateCount}}&nbsp;张</label>                        </div>                    </div>                    <div class="form-group" ng-show="draw ">                        <label class="control-label col-sm-3" for="price">卡券单价</label>                        <div class="col-sm-5 input-container">                            <input id="price" style="width:180px;" kendo-numeric-text-box                                   k-min="0" k-max="99999999" k-step="10" k-options="{format: \'#.##\', decimals:2}"                                   k-on-change="drawPriceChange(kendoEvent)"                                   k-ng-model="draw.price" ng-disabled="editing" />                        </div>                        <label class="control-label col-sm-4" ng-if="!editing"                               style="text-align:left;">                            {{ giftCertificate.giftCertificateType == 0 ? \'面值\':\'原价\' }}：{{ draw.srcPrice | toMoney }}                        </label>                    </div>                    <div class="form-group" ng-show="giftCertificate.planPoint">                        <label class="control-label col-sm-3" for="price">需扣积分</label>                        <label class="control-label col-sm-3" style="text-align:left;margin: 0 -15px;">                            {{ giftCertificate.planPoint }}                        </label>                        <label class="control-label col-sm-3" ng-if="patientPointAccount">当前患者积分</label>                        <label class="control-label col-sm-3" ng-if="patientPointAccount"                               style="text-align:left;margin: 0 -15px;">                            {{ patientPointAccount.point }} {{ isPatientPointMembershpExpried?\'(不可用)\':\'\' }}                        </label>                    </div>                    <div class="form-group" ng-show="(draw.type!=2 || giftCertificate.giftCertificateType==3) && !editing ">                        <label class="control-label col-sm-3" for="price">备注</label>                        <div class="col-sm-5 input-container">                            <textarea id="notes" style="width:300px;height:80px;"                                      ng-model="draw.notes" ng-disabled="editing" class="form-control"                                      placeholder="请输入备注。。"></textarea>                        </div>                    </div>                    <div class="form-group" ng-show="draw.type==2&&!editing&& !isShowSaleInfo()">                        <label class="control-label col-sm-3" for="price">总价</label>                        <div class="col-sm-5 input-container">                            <input class="form-control" readonly="readonly" ng-model="bathTotalPrice" />                        </div>                    </div>                    <div class="form-group" ng-hide="editing || isShowSaleInfo()">                        <label class="control-label col-sm-3" for="payType">支付方式</label>                        <div class="col-sm-5 input-container">                            <input id="payType" name="payType" class="form-control" ng-model="draw.payType" />                        </div>                    </div>                    <div class="form-group" ng-hide="editing ||isShowSaleInfo()">                        <label class="control-label col-sm-3" for="contributorId">经办人</label>                        <div class="col-sm-5 input-container">                            <input id="contributorId" name="contributorId" class="form-control" ng-model="draw.contributorId" />                        </div>                    </div>                </div>            </form>        </div>        <div class="enyo-modal-footer" style="text-align:center;padding:10px 0">            <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>            <button type="button" class="btn btn-primary" ares-click="save()">确定</button>        </div>        <notification-upload-success></notification-upload-success>    </div></div>');templateCache.put('/app/gift/views/gift-certificate/membership-gift-certificate-startpay-view.html','<div ares-modal-dragable ares-clean-kendo>    <div class="modal-header ares-dialog-header">        <button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">&times;</span></button>        <h4 class="modal-title">发布卡券</h4>    </div>    <div class="modal-body ares-dialog-body">        <div class="form-group">            <label for="name" class="control-label col-sm-3">发放渠道</label>            <div class="col-sm-9 input-container">                <label class="checkbox inline" style="display:inline;margin-left:20px">                    <input type="checkbox" ng-model="publish.isOnline" />线上(SCRM)                </label>                <label class="checkbox inline" style="display:inline;margin-left:35px">                    <input type="checkbox" ng-model="publish.isOffline" />线下                </label>            </div>        </div>    </div>    <div class="modal-footer ares-dialog-footer">        <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>        <button type="button" class="btn btn-primary" ng-click="save()">确定</button>    </div>    <notification-upload-success></notification-upload-success></div>');templateCache.put('/app/gift/views/gift-certificate/membership-gift-certificate-used-detail-view.html','<div ares-modal-dragable ares-clean-kendo>    <div class="modal-header ares-dialog-header">        <button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">&times;</span></button>        <h4 class="modal-title">消费记录查询</h4>    </div>    <div class="modal-body ares-dialog-body">        <table id="searchCriteria" style="width:100%;padding-left: 10px;">            <tr>                <td style="width: 210px;padding-left: 10px;">                    <label>消费时间</label>                    <input id="startDatePicker" type="text" class="form-control"                           kendo-date-picker ng-model="searchCriteria.startDate"                           k-format="\'yyyy-MM-dd\'" k-parse-formats="[\'yyyy-MM-dd\']" style="width: 130px;">                </td>                <td style="padding-left: 5px;width: 20px;" ng-hide="defaultSelect">-</td>                <td style="width: 130px; " ng-hide="defaultSelect">                    <input id="endDatePicker" type="text" class="form-control"                           kendo-date-picker ng-model="searchCriteria.endDate"                           k-format="\'yyyy-MM-dd\'" k-parse-formats="[\'yyyy-MM-dd\']" style="width: 130px; ">                </td>                <td style="padding:0 20px;width:225px">                    <label>消费患者</label>                    <input id="used-patient-list" style="width:120px;">                </td>                <td>                    <button type="button" class="btn btn-default" ares-slow-click="search()">                        <span class="glyphicon glyphicon-search" aria-hidden="true"></span> 查询                    </button>                </td>            </tr>        </table>        <div id="gift-certificate-transaction-table" style="margin-top:5px"></div>    </div>    <div class="modal-footer ares-dialog-footer">    </div></div>');templateCache.put('/app/gift/views/gift-certificate/membership-gift-certificate-view.html','<div id="membership-gift-certificate-list" class="enyo">    <style>        #membership-gift-certificate-list input[type=checkbox] {            width: 16px;            height: 16px;            margin: 0 3px;            vertical-align: middle;        }        #membership-gift-certificate-list .gift-certificate_config {            line-height: 28px;            vertical-align: middle;            display: inline-block;        }            #membership-gift-certificate-list .gift-certificate_config config-block {            }        #membership-gift-certificate-list .gift-certificate-paged-list {            margin-top: 5px;        }        #membership-gift-certificate-list .gift-icon {            display: inline-block;            background-image: url(/Content/imgs/icon-approval.png);            background-size: 40px 140px;            width: 20px;            height: 20px;        }            #membership-gift-certificate-list .gift-icon:hover {                background-position-x: 20px;            }            #membership-gift-certificate-list .gift-icon.view {                background-position-y: -40px;            }            #membership-gift-certificate-list .gift-icon.send {                background-position-y: -80px;            }            #membership-gift-certificate-list .gift-icon.stop {                background-position-y: -20px;            }            #membership-gift-certificate-list .gift-icon.publish {            }            #membership-gift-certificate-list .gift-icon.edit {                background-position-y: -100px;            }            #membership-gift-certificate-list .gift-icon.delete {                background-position-y: -120px;            }        #membership-gift-certificate-list .btn-default:hover {            color: #00a8cb;            border-color: #00a8cb;            background-color: white;        }        #membership-gift-certificate-list .gift-certificate-paged-list table {            table-layout: fixed;        }            #membership-gift-certificate-list .gift-certificate-paged-list table tr:hover {                background: #eaf9ff;            }        #membership-gift-certificate-list .text-overflow-ellipsis {            display: -webkit-box;            overflow: hidden;            width: 100%;            -webkit-line-clamp: 2;            -webkit-box-orient: vertical;        }        #membership-gift-certificate-list .filter-table tr td {            font-size: 13px;        }    </style>    <div style="line-height: 28px;">        <table style="width: 100%;" class="filter-table">            <tr>                <td style="width:4%;">券名称:</td>                <td style="padding-left: 5px; ">                    <div class="input-group" style="width:120px;">                        <input type="text" id="search-name" ng-model="searchName"                               class="form-control" placeholder="请输入券名称">                    </div>                </td>                <td style="width:4%;">券类型:</td>                <td style="padding-top: 4px;">                    <base-multi-select-box-view class="approval-actors-select"                                                style="width:180px;display: inline-block; vertical-align: middle; font-size: 14px; "                                                bind-selected-value-arr-field="selectdTypes"                                                bind-data-source="giftCertificateTypes"                                                source-value-field="id"                                                source-display-field="name"                                                source-text-field="name"                                                placeholder="全部"                                                max-selected-items="1000"></base-multi-select-box-view>                </td>                <td style="width:5%;">发布状态:</td>                <td style="padding-top: 4px;">                    <base-multi-select-box-view class="approval-actors-select"                                                style="width:180px;display: inline-block; vertical-align: middle; font-size: 14px; "                                                bind-selected-value-arr-field="selectedStatus"                                                bind-data-source="giftCertificateStatus"                                                source-value-field="id"                                                source-display-field="name"                                                source-text-field="name"                                                placeholder="全部"                                                max-selected-items="1000"></base-multi-select-box-view>                </td>                <td style="width:5%;">创建诊所:</td>                <td>                    <base-multi-select-box-view class="approval-actors-select"                                                style="width:180px;display: inline-block; vertical-align: middle; font-size: 14px; "                                                bind-selected-value-arr-field="createdOffices"                                                bind-data-source="offices"                                                source-value-field="id"                                                source-display-field="name"                                                source-text-field="name"                                                placeholder="全部"                                                max-selected-items="1000"></base-multi-select-box-view>                </td>                <td style="width:4%;">创建人:</td>                <td>                    <base-combo-box-view style="width:130px;"                                         class="order-form-item-content doctor-combo-box"                                         bind-value-field="createdUserId"                                         value-field="userID"                                         bind-text-field="name"                                         bind-data-source="users"                                         combo-box-option="createUserComboxOption"                                         placeholder="全部"></base-combo-box-view>                </td>                <td>                    <button class="btn btn-default" ng-click="getPagedGiftCertificateList()">查询</button>                </td>                <td style="text-align:right;">                    <button class="btn btn-default" ng-click="createGiftCertificate()" ares-hide-if-not-root>新增</button>                </td>            </tr>        </table>    </div>    <div id="giftCertificateList" class="locked-float-right" style="margin-top:10px;">    </div>    <div class="pager-action" style="width: 100%;margin-top:8px;">        <div style="text-align: center;">            <div pagination                 total-items="page.totalCount"                 items-per-page="page.size"                 ng-model="page.index" ng-change="getPagedGiftCertificateList()"                 max-size="15"                 first-text="第一页"                 previous-text="前一页"                 next-text="后一页"                 last-text="最后一页"                 rotate="true"                 class="pagination" boundary-links="true" style="margin:0;height:36px;"></div>            <ul class="pagination" style="margin:0">                <li class="disabled">                    <a style="padding: 0;padding-left: 5px;padding-right: 5px;">                        每页                        <input kendo-numeric-text-box k-min="1" k-max="50" k-ng-model="page.size"                               style="width:63px;" k-on-change="getPagedGiftCertificateList()"                               k-options="{format: \'#\', decimals:0}" />                        条                    </a>                </li>            </ul>            <ul class="pagination" style="margin:0">                <li class="disabled">                    <a style="height:36px;">共{{page.totalCount}}条</a>                </li>            </ul>        </div>    </div></div>');templateCache.put('/app/gift/views/membership/membership-level-apply-list-view.html','<div id="membership-level-apply-list-wrap" class="enyo enyo-gift">    <style>        #membership-level-apply-list-wrap {            height: 100%;        }            #membership-level-apply-list-wrap table {                table-layout: fixed;            }            #membership-level-apply-list-wrap .row-cell {                margin-right: 5px;                font-size: 14px;            }            #membership-level-apply-list-wrap .timer-range-picker-wrapper .show-timer > i {                line-height: 20px;            }            #membership-level-apply-list-wrap .common-search-content {                height: 32px;                margin: 10px 0;                font-size: 0;            }            #membership-level-apply-list-wrap .highlevel-search-content {                height: 42px;                padding: 5px 10px;                margin: 10px 0;                background-color: #e0faff;            }            #membership-level-apply-list-wrap .enyo-table-header-primary th {                border-right: 1px solid #fff;                padding-left: 5px;            }                #membership-level-apply-list-wrap .enyo-table-header-primary th:last-child {                    border: none;                }            #membership-level-apply-list-wrap .apply-list-table {                margin: 0;                overflow-x: auto;            }            #membership-level-apply-list-wrap .apply-list-table-header {                padding: 0 1px;                background: #00A6C9;            }            #membership-level-apply-list-wrap .apply-list-table-body {                border: 1px solid #CFDBDD;                border-top: none;            }                #membership-level-apply-list-wrap .apply-list-table-body tr {                    border: none;                }                    #membership-level-apply-list-wrap .apply-list-table-body tr td {                        padding: 0 5px;                        height: 48px;                        border-right: 1px solid #CFDBDD;                        border-bottom: 1px solid #CFDBDD;                    }                        #membership-level-apply-list-wrap .apply-list-table-body tr td:last-child {                            border-right: none;                        }                #membership-level-apply-list-wrap .apply-list-table-body td .status-text {                    width: calc(100% + 10px);                    height: 100%;                    margin: 0 -5px;                    line-height: 48px;                    text-align: left;                    text-indent: 10px;                }                #membership-level-apply-list-wrap .apply-list-table-body .status-text-pending {                    background-color: #fffcf3;                    color: #f7871d;                }                #membership-level-apply-list-wrap .apply-list-table-body .status-text-reject {                    background-color: #feebe7;                    color: #ff4b3d;                }                #membership-level-apply-list-wrap .apply-list-table-body .status-text-approved,                #membership-level-apply-list-wrap .apply-list-table-body .status-text-adjusted {                    background-color: #e8fff2;                    color: #2dcb73;                }            #membership-level-apply-list-wrap .apply-list-table-page {                height: 28px;                margin: 15px 0;                text-align: center;            }            #membership-level-apply-list-wrap .apply-list-table .select-checkbox-cell {                height: 16px;                width: 28px;            }            #membership-level-apply-list-wrap .select-checkbox-cell .enyo-checkbox + .enyo-checkbox-label {                line-height: 13px;                height: 13px;            }            #membership-level-apply-list-wrap #apply-batch-checkbox-all:checked + label:before {                background: #fff;                color: #00a6c9;            }    </style>    <div class="common-search-content row">        <div class="row-cell">            <input class="form-control" style="width:205px"                   ng-model="criteria.pSearchText" type="text"                   ng-change="criteriaPSearchTextChange()"                   placeholder="姓名/拼音/手机/病历号/会员" />        </div>        <div class="row-cell">            <label class="control-label">触发时间</label>            <timer-range-picker class="apply-date-time-range row-cell"                                range-placeholder="触发起始时间 至 触发接受时间"                                on-changed="criteriaApplyTimeChange"                                time-range-date="applyTimeSpan"></timer-range-picker>        </div>        <div class="row-cell">            <select class="form-control apply-status-drop-down"                    style="width:100px;"                    kendo-drop-down-list ng-model="criteria.applyStatus"                    k-change="criteriaApplyStatusChange">                <option value="all">全部状态</option>                <option value="0">待处理</option>                <option value="1">已通过</option>                <option value="2">手动调整</option>                <option value="3">已拒绝</option>            </select>        </div>        <div class="row-cell">            <office-selector class="pull-left" ng-if="isShowOfficeSelect()"                             office-tree-data="officeTreeData"                             select-mode="allSeparate"                             selected-office-ids="selectedOfficeIds"                             on-selected="onOfficeSelected(selectedOffices)"></office-selector>        </div>        <div class="row-cell">            <button class="btn btn-primary" ng-click="searchApply()">查询</button>        </div>        <div class="row-cell">            <button class="btn btn-default" ng-click="cancelSearchCriteria()">清空</button>        </div>        <div class="row-cell">            <a href="javascript:void(0);" ng-click="onSwitchHighLevelSearch()">高级搜索</a>        </div>        <div class="row-cell pull-right">            <div class="btn-group" ng-show="hasCanBatchData()">                <button class="btn btn-default btn-wide" data-toggle="dropdown">批量操作</button>                <button class="btn btn-default dropdown-toggle" style="width: 28px;padding: 5px 0;margin-left: -3px;"                        data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">                    <span class="caret"></span>                </button>                <ul class="dropdown-menu dropdown-menu-right"                    style="border-radius: 0;margin-bottom: -10px;box-shadow: none;">                    <li><a ng-click="approvedBatchHandle()">批量通过</a></li>                    <li><a ng-click="rejectBatchHandle()">批量拒绝</a></li>                </ul>            </div>        </div>    </div>    <div class="highlevel-search-content row" ng-show="isShowHighLevelSearch">        <div class="row-cell">            <span>高级搜索</span>        </div>        <div class="row-cell">            <input class="form-control operator-userId-drop-down" kendo-drop-down-list                   k-data-source="operatorList" k-filter="\'contains\'"                   k-data-text-field="\'name\'" k-data-value-field="\'userId\'"                   k-change="criteriaOperatorChange"                   ng-model="criteria.userId" />        </div>        <div class="row-cell">            <label class="control-label" style="min-width:55px;">操作时间</label>            <timer-range-picker class="operation-date-time-range row-cell"                                range-placeholder="操作起始时间 至 操作接受时间"                                on-changed="criteriaOperationTimeChange"                                time-range-date="operationTimeSpan"></timer-range-picker>        </div>        <div class="row-cell">            <select class="form-control apply-mode-drop-down"                    style="width:130px;"                    kendo-drop-down-list ng-model="criteria.applyMode"                    k-change="criteriaApplyModeChange">                <option value="all">全部变动类型</option>                <option value="1">开卡</option>                <option value="2">升级</option>                <option value="3">降级</option>                <option value="4">注销</option>            </select>        </div>        <div class="row-cell">            <select class="form-control apply-reason-drop-down"                    style="width:130px;"                    kendo-drop-down-list ng-model="criteria.reason"                    k-change="criteriaReasonChange">                <option value="all">全部触发原因</option>                <option value="1">收费单收费</option>                <option value="2">收费单退费</option>                <option value="3">收费单作废</option>                <option value="4">储值卡充值</option>                <option value="5">储值卡退费</option>                <option value="6">优惠券售卖</option>            </select>        </div>        <div class="row-cell">            <input class="form-control from-membership-type-drop-down" kendo-drop-down-list                   k-data-source="fromMembershipTypeList" k-filter="\'contains\'"                   k-data-text-field="\'name\'" k-data-value-field="\'id\'"                   k-change="criteriaFromTypeChange"                   ng-model="criteria.fromTypeId" />        </div>        <div class="row-cell">            <input class="form-control to-membership-type-drop-down" kendo-drop-down-list                   k-data-source="toMembershipTypeList" k-filter="\'contains\'"                   k-data-text-field="\'name\'" k-data-value-field="\'id\'"                   k-change="criteriaToTypeChange"                   ng-model="criteria.toTypeId" />        </div>    </div>    <div class="apply-list-table row">        <div class="apply-list-table-header">            <table class="enyo-table-header-primary">                <thead>                    <tr>                        <th class="select-checkbox-cell">                            <input type="checkbox" class="enyo-checkbox" ng-checked="isSelectAll()"                                   id="apply-batch-checkbox-all" ng-click="toggleCheckAll()"                                   ng-disabled="!hasCanBatchData()">                            <label class="enyo-checkbox-label" for="apply-batch-checkbox-all"></label>                        </th>                        <th style="width:100px;" ng-if="isShowOfficeSelect()">触发诊所</th>                        <th style="width:90px;">触发时间</th>                        <th style="width:85px;">患者名称</th>                        <th style="width:90px;">当前等级</th>                        <th style="width:90px;">目标等级</th>                        <th style="width:70px;">变动类型</th>                        <th style="width:105px;">触发原因</th>                        <th style="width:90px;">处理后等级</th>                        <th style="width:70px;">状态</th>                        <th style="width:90px;">操作人</th>                        <th style="width:140px;">备注</th>                        <th style="width:90px;">处理时间</th>                        <th style="width:110px;">操作</th>                    </tr>                </thead>            </table>        </div>        <div class="apply-list-table-body">            <table class="enyo-table-primary">                <tbody>                    <tr ng-repeat="applyItem in membershipTypeApplys">                        <td class="select-checkbox-cell">                            <input type="checkbox" class="enyo-checkbox apply-checkbox" ng-checked="applyItem.isSelected"                                   ng-click="toggleCheck(applyItem)" ng-show="hasCanBatchData(applyItem)" id="apply-checkbox-{{ $index }}">                            <label class="enyo-checkbox-label" for="apply-checkbox-{{ $index }}" ng-show="hasCanBatchData(applyItem)"></label>                        </td>                        <td style="width:100px;" ng-if="isShowOfficeSelect()">{{ applyItem.applyOfficeName }}</td>                        <td style="width:90px;">{{ applyItem.applyDateStr }}</td>                        <td style="width:85px;">{{ applyItem.patientName }}</td>                        <td style="width:90px;" ng-bind-html="applyItem.fromTypeHtml"></td>                        <td style="width:90px;" ng-bind-html="applyItem.toTypeHtml"></td>                        <td style="width:70px;">{{ applyItem.applyModeStr }}</td>                        <td style="width:105px;">{{ applyItem.reasonStr }}</td>                        <td style="width:90px;" ng-bind-html="applyItem.finalTypeHtml"></td>                        <td style="width:70px;" ng-bind-html="applyItem.applyStatusHtml"></td>                        <td style="width:90px;">{{ applyItem.operatorName }}</td>                        <td style="width:140px;">{{ applyItem.note }}</td>                        <td style="width:90px;">{{ applyItem.operationDateStr }}</td>                        <td style="width:110px;" class="row">                            <a class="row-cell" href="javascript:void(0);"                               ng-if="applyItem.status == 0 && isEnabledAction"                               ng-click="onClickApprovedBtn(applyItem)">通过</a>                            <a class="row-cell" href="javascript:void(0);"                               ng-if="applyItem.status == 0 && isEnabledAction "                               ng-click="onClickRejectBtn(applyItem)">拒绝</a>                        </td>                    </tr>                </tbody>            </table>        </div>    </div>    <div class="apply-list-table-page lc-table-footer row">        <div pagination total-items="totalCount"             items-per-page="criteria.pageSize"             ng-model="criteria.pageIndex" ng-change="searchApply()"             max-size="10"             first-text="第一页"             previous-text="前一页"             next-text="后一页"             last-text="最后一页"             rotate="true"             class="pagination new-page-color" boundary-links="true" style="margin:0;"></div>        <ul class="pagination new-page-color pagination-to-page" style="margin:0">            <li class="disabled">                <a style="padding: 0;padding-left: 5px;padding-right: 5px;">                    每页                    <input kendo-numeric-text-box k-min="1" k-max="50"                           k-ng-model="criteria.pageSize"                           style="width:63px;" k-on-change="searchApply();"                           k-options="{format: \'#\', decimals:0}" />                    条                </a>            </li>        </ul>        <ul class="pagination" style="margin:0">            <li class="disabled">                <a>共{{ totalCount }}条</a>            </li>        </ul>    </div></div>');templateCache.put('/app/gift/views/membership/membership-list-view.html','<div class="ares-main-content" ares-clean-kendo>    <style>        #membershipList table thead tr th:not([data-index=\'0\']) > a.k-header-column-menu {            display: none;        }        #membershipList .k-animation-container ul li.k-last > div.k-animation-container > ul > li.k-first {            display: none;        }        #membershipList .k-column-menu > ul.k-menu > li.k-item:nth-child(n+2) {            display: block;        }    </style>    <div class="ares-page-header">        <table>            <tr>                <td ng-show="isRegularChain" class="isHideData" style="padding-left: 5px; padding-right: 5px;"><label>开通诊所</label></td>                <td ng-show="isRegularChain" style="width: 130px; ">                    <input id="officeInput" type="text" class="form-control" style="width:125px;margin-left:10px">                </td>                <td style="padding-left: 5px; padding-right: 5px;"><label>会员类型</label></td>                <td style="width: 130px; ">                    <input id="membershipType" type="text" class="form-control" style="width:125px;margin-left:10px">                </td>                <td style="padding-left:20px;">                    <div style="float:left">                        <div>                            <label class="checkbox inline" style="display:inline">                                <input type="radio" name="queryTime" ng-value="0" ng-checked="1" ng-model="queryTimeType">开通时间                            </label>                        </div>                        <div>                            <label class="checkbox inline" style=" display: inline;">                                <input type="radio" name="queryTime" ng-value="1" ng-checked="0" ng-model="queryTimeType">到期时间                            </label>                        </div>                    </div>                </td>                <!--<td style="padding-left:20px;"><label>开通时间</label></td>-->                <td style="padding-left:15px;">                    <select id="daysBeforeTodayInput" class="not-ignore" kendo-drop-down-list style=" width:100px" ng-model="range" ng-change="initCardCreateTimePeriod()">                        <option value="today">本日</option>                        <option value="month">本月</option>                        <option value="customize">自定义</option>                    </select>                </td>                <td ng-if="range==\'customize\'" style="width: 130px;padding-left:5px;">                    <input id="startDatePicker" type="text" class="form-control" kendo-date-picker k-ng-model="timeSpan.startDate" k-format="\'yyyy-MM-dd\'" k-parse-formats="[\'yyyyMMdd\']" style="width: 130px;">                </td>                <td ng-if="range==\'customize\'" style="padding-left: 5px; padding-right: 5px;"><label>-</label></td>                <td ng-if="range==\'customize\'" style="width: 130px; ">                    <input id="endDatePicker" type="text" class="form-control" kendo-date-picker k-ng-model="timeSpan.endDate" k-format="\'yyyy-MM-dd\'" k-parse-formats="[\'yyyyMMdd\']" style="width: 130px; ">                </td>                <td style="padding-left:20px;">                    <input class="form-control" style="width:205px" ng-model="searchText" placeholder="姓名/拼音/手机/病历号/会员" />                </td>                <td style="width: 150px; padding-left: 10px; ">                    <a class="btn btn-default" ares-slow-click="refreshGrid()">查询</a>                    <a class="btn btn-default" ares-slow-click="exportMembershipUsers()" ares-authorize="membership.listExcel">导出</a>                </td>            </tr>        </table>    </div>    <script id="followuptemplate" type="text/x-kendo-template">        <a title="查看患者信息" onclick="MembershipPatientCtrl_goToPatient(this)">#: patientName #</a>    </script>    <script id="patientPointTemplate" type="text/x-kendo-template">        <a title="查看积分变动记录" onclick="MembershipPatientCtrl_goToPatientPointHistory(this)">#: point #</a>    </script>    <div style="margin-top:5px;" id="membershipList"></div></div>');templateCache.put('/app/gift/views/membership/membership-management-summary-view.html','<div class="ares-main-content" ares-clean-kendo>    <div>        <table>            <tr>                <!--<td style="width:160px"><h1 style="margin:0">会员卡余额</h1></td>-->                <td style="padding-left: 10px; padding-right: 10px;">余额区间</td>                <td>                    <input id="minOverdue" style="width:100px;" kendo-numeric-text-box                           k-min="0" k-step="10" k-options="{format: \'#\', decimals:0}"                           k-ng-model="balanceSpan.minBalance" />                    <label> - </label>                    <input id="maxOverdue" style="width:100px;" kendo-numeric-text-box                           k-min="0" k-step="10" k-options="{format: \'#\', decimals:0}"                           k-ng-model="balanceSpan.maxBalance" />                </td>                <td>                    <button type="button" class="btn btn-default" ares-slow-click="search()" style="margin-left:20px;">                        <span class="glyphicon glyphicon-search" aria-hidden="true"></span> 查询                    </button>                    <button type="button" class="btn btn-default" ares-slow-click="exportExcel()">                        导出Excel                    </button>                </td>            </tr>        </table>    </div>    <div style="margin-top:10px;">        <div id="patientList"></div>        <div ng-show="pageData.pageCount > 1" style="margin-top: -15px">            <div pagination total-items="pageData.totalCount" items-per-page="pageData.pageSize"                 ng-model="pageIndex" ng-change="onPageChanged(pageIndex)"                 max-size="maxPageCount" first-text="第一页" previous-text="前一页" next-text="后一页" last-text="最后一页" rotate="true"                 class="pagination" boundary-links="true"></div>        </div>    </div></div>');templateCache.put('/app/gift/views/membership/membership-point-view.html','<div class="ares-main-content" ares-clean-kendo>    <fieldset>        <legend>            消费积分            <input id="consumePoint" type="checkbox" ng-model="pointSetting.consumeRule.isActive"                   ng-click="consumeRuleActiveChange()"                   ng-checked="pointSetting.consumeRule.isActive" />            <label style="font-size:12px;" for="consumePoint">启用</label>        </legend>        <form class="form-horizontal">            <div class="control-group" style="margin-left:2px;margin-top:-15px;">                <label class="control-label">                    每消费                    <input style="width:90px;" k-min="0" k-step="1"                           kendo-numeric-text-box k-options="{format: \'#\', decimals:0}"                           k-ng-model="pointSetting.consumeRule.value" />元，可增加1积分                </label>            </div>        </form>    </fieldset>    <fieldset style="margin-top:20px;">        <legend>            积分有效期            <input id="pointValidDate" type="checkbox" ng-model="pointSetting.validDateRule.isActive"                   ng-click="validDateRuleActiveChange()"                   ng-checked="pointSetting.validDateRule.isActive" />            <label style="font-size:12px;" for="pointValidDate">启用</label>        </legend>        <form class="form-horizontal">            <div class="control-group" style="margin-left:2px;margin-top:-15px;">                <label class="control-label">                    积分有效期时长                    <input style="width:90px;" k-min="0" k-step="1"                           kendo-numeric-text-box k-options="{format: \'#\', decimals:0}"                           k-ng-model="pointSetting.validDateRule.value" />年                </label>            </div>        </form>    </fieldset>    <fieldset>        <legend>            积分抵现            <input id="AgainstCashRule" type="checkbox" ng-model="pointSetting.againstCashRule.isActive"                   ng-click="againstCashRuleActiveChange()"                   ng-checked="pointSetting.againstCashRule.isActive" />            <label style="font-size:12px;" for="AgainstCashRule">启用</label>        </legend>        <form class="form-horizontal">            <div class="control-group" style="margin-left:2px;margin-top:-15px;">                <label class="control-label">                    每                    <input style="width:90px;" k-min="0" k-step="1"                           kendo-numeric-text-box k-options="{format: \'#\', decimals:0}"                           k-ng-model="pointSetting.againstCashRule.value" />积分，可抵1元现金                </label>            </div>        </form>    </fieldset>    <div class="form-group" style="margin-top:30px;margin-left:5px;">        <button type="button" class="btn btn-primary" ng-click="save()">保存</button>    </div>    <notification-upload-success></notification-upload-success></div>');templateCache.put('/app/gift/views/membership/membership-transaction-query-view.html','<div class="ares-main-content" ares-clean-kendo>    <div class="ares-page-header">        <table>            <tr>                <td style="padding-left: 10px; padding-right: 10px;">交易时间</td>                <td>                    <select id="daysBeforeTodayInput" class="not-ignore" kendo-drop-down-list style=" width:100px">                        <option value="0">本日</option>                        <option value="week">本周</option>                        <option value="month">本月</option>                        <option value="自定义">自定义</option>                    </select>                </td>                <td class="isHideData" style="width: 130px;margin-left:10px;">                    <input id="startDatePicker" type="text" class="form-control" kendo-date-picker k-ng-model="timeSpan.startDate" k-format="\'yyyy-MM-dd\'" k-parse-formats="[\'yyyyMMdd\']" style="width: 130px;">                </td>                <td class="isHideData" style="padding-left: 5px; padding-right: 5px;"><label>-</label></td>                <td class="isHideData" style="width: 130px; ">                    <input id="endDatePicker" type="text" class="form-control" kendo-date-picker k-ng-model="timeSpan.endDate" k-format="\'yyyy-MM-dd\'" k-parse-formats="[\'yyyyMMdd\']" style="width: 130px; ">                </td>                <td style="padding-left: 10px; padding-right: 10px;">交易类型</td>                <td>                    <select id="tranTypeInput" class="not-ignore" kendo-drop-down-list style=" width:100px">                        <option value="-1">所有</option>                        <option value="0">充值</option>                        <option value="1">付费</option>                        <option value="2">付费取消</option>                        <option value="3">退款</option>                        <option value="4">转账</option>                    </select>                </td>                <td style="padding-left: 10px; padding-right: 10px;">支付方式</td>                <td>                    <input id="payTypeInput" type="text" class="form-control" ng-model="payType" style="width:100px;">                </td>                <td style="padding-left: 10px; padding-right: 10px;">会员类型</td>                <td>                   <input id="membershiptypeInput" type="text" class="form-control" ng-model="membershiptype" style="width:100px;">                </td>                <td ng-show="isRegularChain" class="isHideData" style="padding-left: 5px; padding-right: 5px;"><label style=\'font-weight:normal;\'>交易诊所</label></td>                <td ng-show="isRegularChain" style="width: 120px; ">                    <input id="officeInput" type="text" class="form-control" ng-model="searchCriteria.officeId" style="width:120px;margin-left:10px">                </td>                 <td style=\'padding-left: 10px; padding-right: 10px;\'>                    <span class="notes-title">经办人</span>                </td>                <td style=\'width:100px;\'>                    <div class="notes-value">                        <input id="contributorId" kendo-drop-down-list type="text" class="form-control"                       k-data-text-field="\'name\'" k-data-value-field="\'id\'"                        k-data-source="otherProviders" ng-model="transaction.contributorId"                       style="width:100px;" k-filter="\'contains\'" k-option-label="\'全部\'">                    </div>                </td>                <!--    <td    style="padding-left: 5px; padding-right: 5px;"><label>交易诊所</label></td>                 <td   style="width: 130px; ">                     <input id="officeInput" type="text" class="form-control" ng-model="searchCriteria.officeId" style="width:125px;margin-left:10px">                 </td> -->                <td style="width: 50px; padding-left: 10px; padding-right: 10px; ">                    <a class="btn btn-default" ares-slow-click="refreshGrid()">查询</a>                </td>                <td style="padding-right: 10px; ">                    <button type="button" class="btn btn-default" ares-slow-click="exportMembershipTransaction()" ares-authorize="membership.transactionExcel">导出</button>                </td>            </tr>        </table>    </div>    <script id="followuptemplate" type="text/x-kendo-template">        #if(!isInactive){#        <a href="" title="查看患者信息" onclick="FollowupPatientCtrl_goToPatient(this)">#: patientName #</a>        #}else{#        <span>#: patientName #（未知）</span>        #}#    </script>    <div style="margin-top:5px;" id="membershipList"></div></div>');templateCache.put('/app/gift/views/membership/membership-type-create-view.html','<div ares-modal-dragable ares-clean-kendo>    <div class="modal-header ares-dialog-header">        <button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">&times;</span></button>        <h4 class="modal-title">{{\'创建会员方案\'}}</h4>    </div>    <div class="modal-body ares-dialog-body">        <div class="panel panel-primary">            <div class="panel-heading">基本信息</div>            <div class="panel-body" style="margin-left: -50px;">                <form id="BasicInfoForm" name="BasicInfoForm" class="form-horizontal" style="width:800px">                    <div class="form-group">                        <label for="name" class="control-label col-sm-2" style="color:red">方案名称 *</label>                        <div class="col-sm-10 input-container">                            <input id="name" name="name" class="form-control" ng-model="membershipType.name" autofocus />                        </div>                    </div>                    <div class="form-group">                        <input type="checkbox" id="allowShare" name="allowShare" ng-model="membershipType.allowShare" class="col-sm-1" style="margin-top:10px;margin-left:40px" />                        <div class="col-sm-10 input-container" style="margin-left:-20px;">                            <label for="allowShare" class="control-label">允许共享</label>                            <label for="maxShare" class="control-label" style="margin-left:10px;">最大共享数</label>                            <input id="maxShare" name="maxShare" style="width:120px;" kendo-numeric-text-box k-min="0" k-max="99999" k-step="1" k-options="{format: \'#.##\', decimals:0}" class="not-ignore" k-ng-model="membershipType.maxShare" ng-disabled="!membershipType.allowShare" />                        </div>                    </div>                    <div class="form-group">                        <div class="col-sm-10 input-container" style="margin-left:70px;">                            <label class="control-label">是否在售</label>                            <label class="checkbox inline" style="display:inline;margin-left:20px">                                <input type="radio" name="allowSell" ng-model="membershipType.allowSell" value="1"> 是                            </label>                            <label class="checkbox inline" style="display: inline; margin-left: 20px">                                <input type="radio" name="allowSell" ng-model="membershipType.allowSell" value="0"> 否                            </label>                        </div>                    </div>                    <div class="form-group">                        <div class="col-sm-10 input-container" style="margin-left:70px;">                            <div class="col-sm-2" style="width:80px !important">                                <label class="control-label">有效期</label>                            </div>                            <div class="col-sm-2 input-container">                                <input id="validPeriod" name="validPeriod" style="width:105px;" kendo-numeric-text-box k-min="-1" k-max="100" k-step="1" k-options="{format: \'#\', decimals:0}" k-ng-model="membershipType.validPeriod||-1" class="not-ignore" k-on-change="onValidPeriodChange(kendoEvent)" />                            </div>                            <div>                                <label class="control-label">年</label>                            </div>                        </div>                    </div>                    <div class="form-group">                        <div class="col-sm-12 input-container membership-type-abbr-input-wrap" style="margin-left:40px;">                            <label class="control-label col-sm-2" style="width:100px !important">名称缩写</label>                            <div class="col-sm-10" style="margin-left: -4px;">                                <div>                                    <input id="abbr" name="abbr" class="form-control" ng-model="membershipType.abbr"                                           style="width:100px;display:inline-block;vertical-align:middle"                                           maxlength="3" placeholder="最多3个字" />                                    <span class="patient-membership-tag" ng-if="membershipType.abbr"                                          style="display:inline-block;vertical-align:middle;">                                        <span class="membership-tag-icon"></span>                                        <span class="membership-tag-text">{{ membershipType.abbr }}</span>                                    </span>                                </div>                                <div>缩写名称用于在患者会员图标显示</div>                            </div>                        </div>                    </div>                </form>            </div>        </div>        <div class="panel panel-primary">            <div class="panel-heading">折扣方案</div>            <div class="panel-body">                <form id="DiscountPlanForm" name="DiscountPlanForm" class="form-horizontal" style="width:1200px">                    <div class="radio">                        <div style="margin-left:20px">                            <input type="radio" name="DiscountTypes" id="OrderDiscountRadio" value="order" ng-model="membershipType.discountPlan.discountType" style="margin-top:10px;">                            <div class="form-group" style="margin-top: -5px;">                                <div class="col-sm-2" style="margin-left:10px;">                                    <label for="OrderDiscountRadio" class="control-label" style="text-align: left">整单折扣</label>                                </div>                                <div class="col-sm-2 input-container">                                    <input id="discount" name="discount" style="width:120px;" kendo-numeric-text-box k-min="0" k-max="1" k-step="0.1" k-options="{format: \'#.##\', decimals:2}" k-ng-model="membershipType.discountPlan.discount" class="not-ignore" ng-disabled="membershipType.discountPlan.discountType!=\'order\'" k-on-change="onDiscountChange(kendoEvent,\'order\')" />                                </div>                                <div class="col-sm-7">                                    <span id="helpBlock" class="help-block">请输入0到1之间的小数，如1代表不打折，0.5表示5折,0.85代表85折</span>                                </div>                            </div>                        </div>                    </div>                    <div class="radio">                        <div style="margin-left:20px">                            <input type="radio" name="DiscountTypes" id="HandleDiscountRadio" value="handle" ng-model="membershipType.discountPlan.discountType" style="margin-top:10px;">                            <div class="form-group" style="margin-top: -5px;width:925px">                                <div class="col-sm-8" style="margin-left:10px;">                                    <label for="HandleDiscountRadio" class="control-label" style="text-align:left">按处置打折(只对明细、处置、跨科的子项目)</label>                                </div>                                <div class="col-sm-2">                                    <div class="col-sm-8">                                    </div>                                </div>                                <div class="form-group" style="margin-top: -5px;margin-left:15px;">                                    <style scoped>                                        .default-discount {                                            color: red;                                        }                                    </style>                                    <table class=" table table-striped table-bordered">                                        <thead>                                            <tr>                                                <th class="text-left">名称</th>                                                <th class="text-left">类型</th>                                                <th class="text-left">原价</th>                                                <th class="text-left">折扣</th>                                                <th class="text-left">折后价</th>                                                <th class="text-left">数量</th>                                                <th class="text-left">频率</th>                                                <th class="text-left">操作</th>                                            </tr>                                        </thead>                                        <tbody>                                            <tr ng-repeat="detailPlan in membershipType.discountPlan.discountPlanDetailList">                                                <td ng-class="$index==0? \'default-discount\':\'\'">{{detailPlan.itemName}}</td>                                                <td ng-class="$index==0? \'default-discount\':\'\'">{{detailPlan.detailType|toDiscountHandleType}}</td>                                                <td>                                                    <span ng-hide="detailPlan.detailType!=\'item\'">{{detailPlan.price|toMoney}}</span>                                                </td>                                                <td ng-class="$index==0? \'default-discount\':\'\'">                                                    <input id="discount" name="discount" style="width:120px;"                                                           kendo-numeric-text-box k-min="0" k-max="1" k-step="0.1"                                                           k-options="{format: \'#.##\', decimals:2}"                                                           ng-disabled="membershipType.discountPlan.discountType!=\'handle\'"                                                           k-on-change="onDiscountChange(kendoEvent,\'handle\',$index)"                                                           k-ng-model="detailPlan.discount"                                                           class="not-ignore" />                                                </td>                                                <td>                                                    <input style="width:120px;"                                                           kendo-numeric-text-box k-min="0" k-max="9999999" k-step="1"                                                           k-options="{ decimals:2}"                                                           ng-hide="detailPlan.detailType!=\'item\'"                                                           k-on-change="onAfterDiscountPriceChange(kendoEvent,\'handle\',$index)"                                                           k-ng-model="detailPlan.afterDiscountPrice" class="not-ignore" />                                                </td>                                                <td>                                                    <input class="detailPlanMaxCount" name="maxCount"                                                           style="width:100px;" kendo-numeric-text-box k-min="-1"                                                           k-max="99999" k-step="1"                                                           ng-hide="detailPlan.detailType!=\'item\'"                                                           k-options="{format: \'#######\', decimals:0}"                                                           k-ng-model="detailPlan.maxCount"                                                           class="not-ignore" />                                                </td>                                                <td>                                                    <select class="detailPlanFrequency"                                                            kendo-drop-down-list ng-model="detailPlan.planFrequency"                                                            ng-hide="detailPlan.detailType!=\'item\'"                                                            style="width:120px">                                                        <option value="0">每年</option>                                                        <option value="1">总计</option>                                                    </select>                                                </td>                                                <td>                                                    <button type="button" class="btn btn-default" ng-click="deleteDiscountDetail($index)" ng-show="detailPlan.detailType!=\'default\'" ng-disabled="membershipType.discountPlan.discountType!=\'handle\'">                                                        <span class="glyphicon glyphicon-trash"></span> 删除                                                    </button>                                                    <button type="button" class="btn btn-default" ng-click="addDiscountDetail()" ng-show="$last" ng-disabled="membershipType.discountPlan.discountType!=\'handle\'">                                                        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 添加                                                    </button>                                                </td>                                            </tr>                                        </tbody>                                    </table>                                </div>                            </div>                        </div>                    </div>                </form>            </div>        </div>        <div class="panel panel-primary">            <div class="panel-heading">回馈方案</div>            <div class="panel-body">                <div class="form-group" style="margin-top: -5px;margin-left:15px;">                    <table class="table table-striped table-bordered">                        <thead>                            <tr>                                <th class="text-left">名称</th>                                <th class="text-left">赠送次数</th>                                <th class="text-left">频率</th>                                <th class="text-left">限制</th>                                <th class="text-left">操作</th>                            </tr>                        </thead>                        <tbody>                            <tr ng-repeat="giftPlan in membershipType.giftPlanList">                                <td>{{giftPlan.itemName}}</td>                                <td>                                    <form id="GiftPlanForm" name="GiftPlanForm" class="form-horizontal" style="margin-left: 10px;">                                        <div class="form-group  input-container" style="margin-bottom:0px !important">                                            <input id="maxCount" name="maxCount" style="width:150px;" kendo-numeric-text-box k-min="-1" k-max="99999" k-step="1" k-options="{format: \'#######\', decimals:0}" k-ng-model="giftPlan.maxCount" class="not-ignore" />                                        </div>                                    </form>                                </td>                                <td>                                    <select id="freq" kendo-drop-down-list ng-model="giftPlan.planFrequency" style="width:150px">                                        <option>每年</option>                                        <option>总计</option>                                    </select>                                </td>                                <td>                                    <select id="limit" kendo-drop-down-list ng-model="giftPlan.planScope" style="width:200px">                                        <option>仅持卡人</option>                                        <option>所有人</option>                                    </select>                                </td>                                <td>                                    <button type="button" class="btn btn-default" ng-click="deleteGiftPlan($index)">                                        <span class="glyphicon glyphicon-trash"></span> 删除                                    </button>                                </td>                            </tr>                        </tbody>                    </table>                </div>                <div class="form-group">                    <label for="OrderDiscountRadio" class="col-sm-7 control-label" style="text-align:left;">赠送频率：-1代表无限次，2代表2次</label>                    <div class="pull-right">                        <button type="button" class="btn btn-default" ng-click="addGiftPlan()">                            <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 添加                        </button>                    </div>                </div>            </div>        </div>        <div class="panel panel-primary">            <div class="panel-heading">充值方案</div>            <div class="panel-body">                <form name="rechargePlanForm" ng-repeat="item in membershipType.rechargePlanList" class="form-horizontal" style="width:950px">                    <div style="margin-top:10px" class="col-sm-10">                        <label class="control-label col-sm-2">充值金额满：</label>                        <div class="form-group col-sm-3 input-container">                            <input id="rechargePrice" name="rechargePrice" style="width:130px;" kendo-numeric-text-box k-min="0" k-max="99999999" k-step="10" k-options="{format: \'#.##\', decimals:2}" k-ng-model="item.rechargePrice" class="not-ignore" />                        </div>                        <label class="control-label col-sm-2">赠送金额：</label>                        <div class="col-sm-3">                            <input id="giftPrice" name="giftPrice" style="width:120px;" kendo-numeric-text-box k-min="0" k-max="99999999" k-step="10" k-options="{format: \'#.##\', decimals:2}" k-ng-model="item.giftPrice" class="not-ignore" />                        </div>                        <div class="col-sm-2">                            <button type="button" class="btn btn-default" ng-click="deleteRechargePlan($index)">                                <span class="glyphicon glyphicon-trash"></span> 删除                            </button>                        </div>                    </div>                </form>                <div class="pull-right" style="margin-top:10px;">                    <button type="button" class="btn btn-default" ng-click="addRechargePlan()">                        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 添加                    </button>                </div>            </div>        </div>        <div class="panel panel-primary">            <div class="panel-heading">积分方案</div>            <div class="panel-body">                <div style="margin-top:10px" class="col-sm-10">                    <label class="control-label col-sm-4">本级别会员能够获得积分倍数：</label>                    <div class="form-group col-sm-3 input-container" style="margin-left:-25px">                        <input id="pointRatio" name="pointRatio" style="width:80px;" kendo-numeric-text-box k-min="0" k-max="100" k-step="0.1" k-options="{format: \'#.#\', decimals:1}" k-ng-model="membershipType.pointRatio" class="not-ignore" />                    </div>                </div>            </div>        </div>        <div class="panel panel-primary">            <div class="panel-heading">开卡礼包</div>            <div class="panel-body">                <div class="form-group" style="margin-top: -5px;margin-left:35px;">                    <table class=" table table-striped table-bordered">                        <thead>                            <tr>                                <th class="text-left">卡券名称</th>                                <th class="text-left">绑定数量</th>                                <th class="text-left">总量</th>                                <th class="text-left">已领用</th>                                <th class="text-left">操作</th>                            </tr>                        </thead>                        <tbody>                            <tr ng-repeat="giftCertificate in membershipType.giftCertificatePackagePlan.giftCertificatePackagePlanDetailList">                                <td>{{giftCertificate.giftCertificate.certificateName}}</td>                                <td>                                    <form id="packagePlanForm" name="packagePlanForm" class="form-horizontal" style="margin-left: 10px;">                                        <div class="form-group  input-container" style="margin-bottom:0px !important">                                            <input id="detailCount" name="detailCount" style="width:150px;" kendo-numeric-text-box k-min="1" k-max="10000" k-step="1" k-options="{format: \'#######\', decimals:0}" k-ng-model="giftCertificate.count" class="not-ignore" />                                        </div>                                    </form>                                </td>                                <td>{{giftCertificate.giftCertificate.count}}</td>                                <td>{{giftCertificate.giftCertificate.drawCount}}</td>                                <td>                                    <button type="button" class="btn btn-default" ng-click="deletePackagePlanDetail($index)">                                        <span class="glyphicon glyphicon-trash"></span> 删除                                    </button>                                </td>                            </tr>                        </tbody>                    </table>                </div>                <div class="form-group" style="margin-left:20px;">                    <div class="pull-right">                        <button type="button" class="btn btn-default" ng-click="addGiftCertificatePackagePlan()">                            <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 添加                        </button>                    </div>                </div>            </div>        </div>    </div>    <div class="modal-footer ares-dialog-footer">        <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>        <button type="button" class="btn btn-primary" ng-click="save2()">确定</button>    </div></div>');templateCache.put('/app/gift/views/membership/membership-type-edit-view.html','<div ares-modal-dragable ares-clean-kendo>    <div class="modal-header ares-dialog-header">        <button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">&times;</span></button>        <h4 class="modal-title">{{\'编辑会员方案\'}}</h4>    </div>    <div class="modal-body ares-dialog-body">        <div class="panel panel-primary">            <div class="panel-heading">基本信息</div>            <div class="panel-body" style="margin-left: -50px;">                <form id="BasicInfoForm" name="BasicInfoForm" class="form-horizontal" style="width:800px">                    <div class="form-group">                        <label for="name" class="control-label col-sm-2" style="color:red">方案名称 *</label>                        <div class="col-sm-10 input-container">                            <input id="name" name="name" class="form-control" ng-model="membershipType.name" autofocus />                        </div>                    </div>                    <div class="form-group">                        <input type="checkbox" id="allowShare" name="allowShare" ng-model="membershipType.allowShare" class="col-sm-1" style="margin-top:10px;margin-left:40px" />                        <div class="col-sm-10 input-container" style="margin-left:-20px;">                            <label for="allowShare" class="control-label">允许共享</label>                            <label for="maxShare" class="control-label" style="margin-left:10px;">最大共享数</label>                            <input id="maxShare" name="maxShare" style="width:120px;" kendo-numeric-text-box k-min="0" k-max="99999" k-step="1" k-options="{format: \'#.##\', decimals:0}" class="not-ignore" k-ng-model="membershipType.maxShare" ng-disabled="!membershipType.allowShare" />                        </div>                    </div>                    <div class="form-group">                        <div class="col-sm-10 input-container" style="margin-left:70px;">                            <label class="control-label">是否在售</label>                            <label class="checkbox inline" style="display:inline;margin-left:20px">                                <input type="radio" name="allowSell" ng-model="membershipType.allowSell" value="1"> 是                            </label>                            <label class="checkbox inline" style="display: inline; margin-left: 20px">                                <input type="radio" name="allowSell" ng-model="membershipType.allowSell" value="0"> 否                            </label>                        </div>                    </div>                    <div class="form-group">                        <div class="col-sm-10 input-container" style="margin-left:70px;">                            <div class="col-sm-2" style="width:80px !important">                                <label class="control-label">有效期</label>                            </div>                            <div class="col-sm-2 input-container">                                <input id="validPeriod" name="validPeriod" style="width:105px;" kendo-numeric-text-box k-min="-1" k-max="100" k-step="1" k-options="{format: \'#\', decimals:0}" k-ng-model="membershipType.validPeriod" class="not-ignore" k-on-change="onValidPeriodChange(kendoEvent)" />                            </div>                            <div>                                <label class="control-label">年</label>                            </div>                        </div>                    </div>                    <div class="form-group">                        <div class="col-sm-12 input-container membership-type-abbr-input-wrap" style="margin-left:40px;">                            <label class="control-label col-sm-2" style="width:100px !important">名称缩写</label>                            <div class="col-sm-10" style="margin-left: -4px;">                                <div>                                    <input id="abbr" name="abbr" class="form-control" ng-model="membershipType.abbr"                                           style="width:100px;display:inline-block;vertical-align:middle"                                           maxlength="3" placeholder="最多3个字" />                                    <span class="patient-membership-tag" ng-if="membershipType.abbr"                                          style="display:inline-block;vertical-align:middle;">                                        <span class="membership-tag-icon"></span>                                        <span class="membership-tag-text">{{ membershipType.abbr }}</span>                                    </span>                                </div>                                <div>缩写名称用于在患者会员图标显示</div>                            </div>                        </div>                    </div>                </form>            </div>        </div>        <div class="panel panel-primary">            <div class="panel-heading">折扣方案</div>            <div class="panel-body">                <form id="DiscountPlanForm" name="DiscountPlanForm" class="form-horizontal" style="width:925px">                    <div class="radio">                        <div style="margin-left:20px">                            <input type="radio" name="DiscountTypes" id="OrderDiscountRadio" value="order" ng-model="membershipType.discountPlan.discountType" style="margin-top:10px;">                            <div class="form-group" style="margin-top: -5px;">                                <div class="col-sm-2" style="margin-left:10px;">                                    <label for="OrderDiscountRadio" class="control-label" style="text-align: left">整单折扣</label>                                </div>                                <div class="col-sm-2 input-container">                                    <input id="discount" name="discount" style="width:120px;" kendo-numeric-text-box k-min="0" k-max="1" k-step="0.1" k-options="{format: \'#.##\', decimals:2}" k-ng-model="membershipType.discountPlan.discount" class="not-ignore" ng-disabled="membershipType.discountPlan.discountType!=\'order\'" k-on-change="onDiscountChange(kendoEvent,\'order\')" />                                </div>                                <div class="col-sm-7">                                    <span id="helpBlock" class="help-block">请输入0到1之间的小数，如1代表不打折，0.5表示5折,0.85代表85折</span>                                </div>                            </div>                        </div>                    </div>                    <div class="radio">                        <div style="margin-left:20px">                            <input type="radio" name="DiscountTypes" id="HandleDiscountRadio" value="handle" ng-model="membershipType.discountPlan.discountType" style="margin-top:10px;">                            <div class="form-group" style="margin-top: -5px;width:700px">                                <div class="col-sm-8" style="margin-left:10px;">                                    <label for="HandleDiscountRadio" class="control-label" style="text-align:left">按处置打折(只对明细、处置、跨科的子项目)</label>                                </div>                                <div class="col-sm-2">                                </div>                            </div>                            <div class="form-group" style="margin-top: -5px;margin-left:15px;">                                <style scoped>                                    .default-discount {                                        color: red;                                    }                                </style>                                <table class=" table table-striped table-bordered">                                    <thead>                                        <tr>                                            <th class="text-left">名称</th>                                            <th class="text-left">类型</th>                                            <th class="text-left">原价</th>                                            <th class="text-left">折扣</th>                                            <th class="text-left">折后价</th>                                            <th class="text-left">数量</th>                                            <th class="text-left">频率</th>                                            <th class="text-left">操作</th>                                        </tr>                                    </thead>                                    <tbody>                                        <tr ng-repeat="detailPlan in membershipType.discountPlan.discountPlanDetailList">                                            <td ng-class="$index==0? \'default-discount\':\'\'">{{detailPlan.itemName}}</td>                                            <td ng-class="$index==0? \'default-discount\':\'\'">{{detailPlan.detailType|toDiscountHandleType}}</td>                                            <td>                                                <span ng-hide="detailPlan.detailType!=\'item\'">{{detailPlan.price|toMoney}}</span>                                            </td>                                            <td ng-class="$index==0? \'default-discount\':\'\'">                                                <input id="discount" name="discount" style="width:120px;"                                                       kendo-numeric-text-box k-min="0" k-max="1" k-step="0.1"                                                       k-options="{format: \'#.##\', decimals:2}"                                                       ng-disabled="membershipType.discountPlan.discountType!=\'handle\'"                                                       k-on-change="onDiscountChange(kendoEvent,\'handle\',$index)"                                                       k-ng-model="detailPlan.discount"                                                       class="not-ignore" />                                            </td>                                            <td>                                                <input style="width:120px;"                                                       kendo-numeric-text-box k-min="0" k-max="9999999" k-step="1"                                                       k-options="{ decimals:2}"                                                       ng-hide="detailPlan.detailType!=\'item\'"                                                       k-on-change="onAfterDiscountPriceChange(kendoEvent,\'handle\',$index)"                                                       k-ng-model="detailPlan.afterDiscountPrice" class="not-ignore" />                                            </td>                                            <td>                                                <input id="detailPlanMaxCount" name="maxCount"                                                       style="width:100px;" kendo-numeric-text-box k-min="-1"                                                       k-max="99999" k-step="1"                                                       ng-hide="detailPlan.detailType!=\'item\'"                                                       k-options="{format: \'#######\', decimals:0}"                                                       k-ng-model="detailPlan.maxCount"                                                       class="not-ignore" />                                            </td>                                            <td>                                                <select id="detailPlanFrequency"                                                        kendo-drop-down-list ng-model="detailPlan.planFrequency"                                                        ng-hide="detailPlan.detailType!=\'item\'"                                                        style="width:120px">                                                    <option value="0">每年</option>                                                    <option value="1">总计</option>                                                </select>                                            </td>                                            <td>                                                <button type="button" class="btn btn-default" ng-click="deleteDiscountDetail($index)" ng-show="detailPlan.detailType!=\'default\'" ng-disabled="membershipType.discountPlan.discountType!=\'handle\'">                                                    <span class="glyphicon glyphicon-trash"></span> 删除                                                </button>                                                <button type="button" class="btn btn-default" ng-click="addDiscountDetail()" ng-show="$last" ng-disabled="membershipType.discountPlan.discountType!=\'handle\'">                                                    <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 添加                                                </button>                                            </td>                                        </tr>                                    </tbody>                                </table>                            </div>                        </div>                    </div>                </form>            </div>        </div>        <div class="panel panel-primary">            <div class="panel-heading">回馈方案</div>            <div class="panel-body">                <div class="form-group" style="margin-top: -5px;margin-left:35px;">                    <table class=" table table-striped table-bordered">                        <thead>                            <tr>                                <th class="text-left">名称</th>                                <th class="text-left">赠送次数</th>                                <th class="text-left">频率</th>                                <th class="text-left">限制</th>                                <th class="text-left">操作</th>                            </tr>                        </thead>                        <tbody>                            <tr ng-repeat="giftPlan in membershipType.giftPlanList">                                <td>{{giftPlan.itemName}}</td>                                <td>                                    <form id="GiftPlanForm" name="GiftPlanForm" class="form-horizontal" style="margin-left: 10px;">                                        <div class="form-group  input-container" style="margin-bottom:0px !important">                                            <input id="maxCount" name="maxCount" style="width:150px;" kendo-numeric-text-box k-min="-1" k-max="99999" k-step="1" k-options="{format: \'#######\', decimals:0}" k-ng-model="giftPlan.maxCount" class="not-ignore" />                                        </div>                                    </form>                                </td>                                <td>                                    <select id="freq" kendo-drop-down-list ng-model="giftPlan.planFrequency" style="width:200px">                                        <option>每年</option>                                        <option>总计</option>                                    </select>                                </td>                                <td>                                    <select id="limit" kendo-drop-down-list ng-model="giftPlan.planScope" style="width:200px">                                        <option>仅持卡人</option>                                        <option>所有人</option>                                    </select>                                </td>                                <td>                                    <button type="button" class="btn btn-default" ng-click="deleteGiftPlan($index)">                                        <span class="glyphicon glyphicon-trash"></span> 删除                                    </button>                                </td>                            </tr>                        </tbody>                    </table>                </div>                <div class="form-group" style="margin-left:20px;">                    <label class="col-sm-7 control-label" style="text-align:left;">赠送频率：-1代表无限次，2代表2次</label>                    <div class="pull-right">                        <button type="button" class="btn btn-default" ng-click="addGiftPlan()">                            <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 添加                        </button>                    </div>                </div>            </div>        </div>        <div class="panel panel-primary">            <div class="panel-heading">充值方案</div>            <div class="panel-body">                <form name="rechargePlanForm" ng-repeat="item in membershipType.rechargePlanList" class="form-horizontal" style="width:950px">                    <div style="margin-top:10px" class="col-sm-10">                        <label class="control-label col-sm-2">充值金额满：</label>                        <div class="form-group col-sm-3 input-container">                            <input id="rechargePrice" name="rechargePrice" style="width:130px;" kendo-numeric-text-box k-min="0" k-max="99999999" k-step="10" k-options="{format: \'#.##\', decimals:2}" k-ng-model="item.rechargePrice" class="not-ignore" />                        </div>                        <label class="control-label col-sm-2">赠送金额：</label>                        <div class="col-sm-3">                            <input id="giftPrice" name="giftPrice" style="width:120px;" kendo-numeric-text-box k-min="0" k-max="99999999" k-step="10" k-options="{format: \'#.##\', decimals:2}" k-ng-model="item.giftPrice" class="not-ignore" />                        </div>                        <div class="col-sm-2">                            <button type="button" class="btn btn-default" ng-click="deleteRechargePlan($index)">                                <span class="glyphicon glyphicon-trash"></span> 删除                            </button>                        </div>                    </div>                </form>                <div class="pull-right" style="margin-top:10px;">                    <button type="button" class="btn btn-default" ng-click="addRechargePlan()">                        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 添加                    </button>                </div>            </div>        </div>        <div class="panel panel-primary">            <div class="panel-heading">积分方案</div>            <div class="panel-body">                <div style="margin-top:10px" class="col-sm-10">                    <label class="control-label col-sm-4">本级别会员能够获得积分倍数：</label>                    <div class="form-group col-sm-3 input-container" style="margin-left:-25px">                        <input id="pointRatio" name="pointRatio" style="width:80px;" kendo-numeric-text-box k-min="0" k-max="100" k-step="0.1" k-options="{format: \'#.#\', decimals:1}" k-ng-model="membershipType.pointRatio" class="not-ignore" />                    </div>                </div>            </div>        </div>        <div class="panel panel-primary">            <div class="panel-heading">开卡礼包</div>            <div class="panel-body">                <div class="form-group" style="margin-top: -5px;margin-left:35px;" id="packagePlan">                    <table class=" table table-striped table-bordered">                        <thead>                            <tr>                                <th class="text-left">卡券名称</th>                                <th class="text-left">绑定数量</th>                                <th class="text-left">总量</th>                                <th class="text-left">已领用</th>                                <th class="text-left">操作</th>                            </tr>                        </thead>                        <tbody>                            <tr ng-repeat="giftCertificate in membershipType.giftCertificatePackagePlan.giftCertificatePackagePlanDetailList">                                <td>{{giftCertificate.giftCertificate.certificateName}}</td>                                <td>                                    <form name="packagePlanForm" class="form-horizontal" style="margin-left: 10px;">                                        <div class="form-group input-container" style="margin-bottom:0px !important">                                            <input name="detailCount" style="width:150px;" kendo-numeric-text-box k-min="1" k-max="10000" k-step="1" k-options="{format: \'#######\', decimals:0}" k-ng-model="giftCertificate.count" class="not-ignore" />                                        </div>                                    </form>                                </td>                                <td>{{giftCertificate.giftCertificate.count}}</td>                                <td>{{giftCertificate.giftCertificate.drawCount}}</td>                                <td>                                    <button type="button" class="btn btn-default" ng-click="deletePackagePlanDetail($index)">                                        <span class="glyphicon glyphicon-trash"></span> 删除                                    </button>                                </td>                            </tr>                        </tbody>                    </table>                </div>                <div class="form-group" style="margin-left:20px;">                    <div class="pull-right">                        <button type="button" class="btn btn-default" ng-click="addGiftCertificatePackagePlan()">                            <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 添加                        </button>                    </div>                </div>            </div>        </div>    </div>    <div class="modal-footer ares-dialog-footer">        <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>        <button type="button" class="btn btn-primary" ng-click="save2()">确定</button>    </div></div>');templateCache.put('/app/gift/views/membership/membership-type-list-view.html','<div id="membership-type-list-wrap" class="ares-main-content enyo enyo-gift" ares-clean-kendo>    <style>        #membership-type-list-wrap {        }            #membership-type-list-wrap .action-btn {                font-size: 0;            }                #membership-type-list-wrap .action-btn a {                    display: inline-block;                    vertical-align: middle;                    font-size: 14px;                    margin: 0 20px 0 0;                }                    #membership-type-list-wrap .action-btn a:last-child {                        margin-right: 0;                    }            #membership-type-list-wrap .type-list-table-page {                text-align: center;            }            #membership-type-list-wrap .enyo-text-info {                line-height: 34px;            }    </style>    <div style="margin-top:10px;">        <div class="form-group row" style="margin:10px 0;height: 32px;">            <div class="pull-left" style="padding:0 0 0 15px;line-height:32px;"                 ng-show="isMembershipUpgradeEnabled && !isMembershipLevelRuleEnable"                 ares-hide-if-not-root>                <div class="row-cell">                    <input type="checkbox" class="enyo-checkbox" id="membershipLevelRuleSwitch"                           ng-disabled="!isShowTypeRuleSwitch"                           ng-click="changeMembershipLevelRuleOption()"                           ng-model="isMembershipLevelRuleEnable">                    <label class="enyo-checkbox-label" for="membershipLevelRuleSwitch">启用会员等级规则</label>                </div>                <div class="row-cell enyo-text-info" data-toggle="tooltip" data-placement="bottom"                     title="{{ levelRuleTooltipContent }}">                    <i class="iconfont icon-xinxi1"></i>                </div>            </div>            <div class="pull-left" style="line-height:32px;" ng-show="isMembershipLevelRuleEnable">                <div class="enyo-radio-btn-group">                    <input type="radio" name="editType" value="true" ng-model="criteria.isLevel" ng-change="onLevelChanged()"                           id="hasLevelMembershipType" ng-checked="criteria.isLevel == \'true\'">                    <label for="hasLevelMembershipType">等级会员卡</label>                    <input type="radio" name="editType" value="false" ng-model="criteria.isLevel" ng-change="onLevelChanged()"                           id="notLevelMembershipType" ng-checked="criteria.isLevel != \'true\'">                    <label for="notLevelMembershipType">非等级会员卡</label>                </div>            </div>            <div class="pull-left" style="padding:0 0 0 25px;line-height:32px;">                <div class="row-cell">                    <div class="input-group input-group-clean">                        <input class="form-control" style="width:100px"                               ng-model="criteria.name" type="text"                               placeholder="会员卡名称" ng-change="criteriaPSearchTextChange()" />                        <span class="input-group-addon">                            <i class="iconfont icon-sousuo"></i>                        </span>                    </div>                </div>                <div class="row-cell">                    <label class="control-label" style="min-width:70px;">在售状态</label>                    <select class="form-control allow-sell-drop-down"                            style="width:100px;" k-change="criteriaAllowSellChange"                            kendo-drop-down-list ng-model="criteria.allowSell">                        <option value="all">全部</option>                        <option value="true">开启</option>                        <option value="false">关闭</option>                    </select>                </div>                <div class="row-cell">                    <label class="control-label" style="min-width:70px;">共享状态</label>                    <select class="form-control allow-share-drop-down"                            style="width:100px;" k-change="criteriaAllowShareChange"                            kendo-drop-down-list ng-model="criteria.allowShare">                        <option value="all">全部</option>                        <option value="true">允许</option>                        <option value="false">不允许 </option>                    </select>                </div>                <div class="row-cell" style="margin-left:25px;">                    <button class="btn btn-primary" ng-click="refreshGrid()">查询</button>                </div>            </div>            <button type="button" class="btn btn-wide btn-primary pull-right" ng-click="addHandle()"                    ares-hide-if-not-root>                <span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span> 新增会员卡            </button>        </div>        <div id="membershipTypeList"></div>        <div class="type-list-table-page lc-table-footer row">            <div pagination total-items="pageInfo.totalCount"                 items-per-page="pageInfo.pageSize"                 ng-model="pageInfo.pageIndex" ng-change="refreshGrid()"                 max-size="10"                 first-text="第一页"                 previous-text="前一页"                 next-text="后一页"                 last-text="最后一页"                 rotate="true"                 class="pagination new-page-color" boundary-links="true" style="margin:0;"></div>            <ul class="pagination new-page-color pagination-to-page" style="margin:0">                <li class="disabled">                    <a style="padding: 0;padding-left: 5px;padding-right: 5px;">                        每页                        <input kendo-numeric-text-box k-min="1" k-max="50"                               k-ng-model="pageInfo.pageSize"                               style="width:63px;" k-on-change="refreshGrid();"                               k-options="{format: \'#\', decimals:0}" />                        条                    </a>                </li>            </ul>            <ul class="pagination" style="margin:0">                <li class="disabled">                    <a>共{{ pageInfo.totalCount }}条</a>                </li>            </ul>        </div>    </div></div>');templateCache.put('/app/gift/views/membership/membership-type-transaction-list-view.html','<div id="membership-type-transaction-list-wrap" class="enyo enyo-gift">    <style>        #membership-type-transaction-list-wrap {            height: 100%;        }            #membership-type-transaction-list-wrap table {                table-layout: fixed;            }            #membership-type-transaction-list-wrap .row-cell {                margin-right: 10px;            }            #membership-type-transaction-list-wrap .timer-range-picker-wrapper .show-timer > i {                line-height: 20px;            }            #membership-type-transaction-list-wrap .common-search-content {                height: 32px;                margin: 10px 0;            }            #membership-type-transaction-list-wrap .highlevel-search-content {                height: 42px;                padding: 5px 10px;                margin: 10px 0;                background-color: #e0faff;            }            #membership-type-transaction-list-wrap .enyo-table-header-primary th {                border-right: 1px solid #fff;            }                #membership-type-transaction-list-wrap .enyo-table-header-primary th:last-child {                    border: none;                }            #membership-type-transaction-list-wrap .transaction-list-table {                margin: 0;            }            #membership-type-transaction-list-wrap .transaction-list-table-body {                border: 1px solid #CFDBDD;                border-top: none;            }                #membership-type-transaction-list-wrap .transaction-list-table-body tr {                    border: none;                }                    #membership-type-transaction-list-wrap .transaction-list-table-body tr td {                        height: 48px;                        border-right: 1px solid #CFDBDD;                        border-bottom: 1px solid #CFDBDD;                    }                        #membership-type-transaction-list-wrap .transaction-list-table-body tr td:last-child {                            border-right: none;                        }                #membership-type-transaction-list-wrap .transaction-list-table-body td .status-text {                    width: calc(100% + 20px);                    height: 100%;                    margin: 0 -10px;                    line-height: 48px;                    text-align: left;                    text-indent: 10px;                }                #membership-type-transaction-list-wrap .transaction-list-table-body .status-text-pending {                    background-color: #fffcf3;                    color: #f7871d;                }                #membership-type-transaction-list-wrap .transaction-list-table-body .status-text-reject {                    background-color: #feebe7;                    color: #ff4b3d;                }                #membership-type-transaction-list-wrap .transaction-list-table-body .status-text-approved,                #membership-type-transaction-list-wrap .transaction-list-table-body .status-text-adjusted {                    background-color: #e8fff2;                    color: #2dcb73;                }            #membership-type-transaction-list-wrap .transaction-list-table-page {                height: 28px;                margin: 15px 0;                text-align: center;            }            #membership-type-transaction-list-wrap .row-cell .row-cell:last-child {                margin-right: 0;            }    </style>    <div class="common-search-content row">        <div class="row-cell">            <input class="form-control" style="width:205px"                   ng-model="criteria.pSearchText" type="text"                   ng-change="criteriaPSearchTextChange()"                   placeholder="姓名/拼音/手机/病历号/会员" />        </div>        <div class="row-cell">            <input class="form-control operator-userId-drop-down" kendo-drop-down-list                   k-data-source="operatorList" k-filter="\'contains\'"                   k-data-text-field="\'name\'" k-data-value-field="\'userId\'"                   k-change="criteriaOperatorChange"                   ng-model="criteria.userId" />        </div>        <div class="row-cell">            <label class="control-label" style="min-width:55px;">处理时间</label>            <timer-range-picker class="transaction-date-time-range row-cell"                                range-placeholder="触发起始时间 至 触发接受时间"                                on-changed="criteriaTransactionTimeChange"                                time-range-date="transactionTimeSpan"></timer-range-picker>        </div>        <div class="row-cell">            <office-selector class="pull-left" ng-if="isShowOfficeSelect()"                             office-tree-data="officeTreeData"                             select-mode="allSeparate"                             selected-office-ids="selectedOfficeIds"                             on-selected="onOfficeSelected(selectedOffices)"></office-selector>        </div>        <div class="row-cell">            <button class="btn btn-primary" ng-click="searchTransaction()">查询</button>        </div>        <div class="row-cell">            <button class="btn btn-default" ng-click="cancelSearchCriteria()">清空</button>        </div>        <div class="row-cell">            <a href="javascript:void(0);" ng-click="onSwitchHighLevelSearch()">高级搜索</a>        </div>    </div>    <div class="highlevel-search-content row" ng-show="isShowHighLevelSearch">        <div class="row-cell">            <span>高级搜索</span>        </div>        <div class="row-cell">            <select class="form-control transaction-mode-drop-down"                    kendo-drop-down-list ng-model="criteria.applyMode"                    k-change="criteriaApplyModeChange">                <option value="all">全部变动类型</option>                <option value="1">开卡</option>                <option value="2">升级</option>                <option value="3">降级</option>                <option value="4">注销</option>            </select>        </div>        <div class="row-cell">            <select class="form-control apply-status-drop-down"                    kendo-drop-down-list ng-model="criteria.operationMode"                    k-change="criteriaOperationModeChange">                <option value="all">全部处理类型</option>                <option value="0">手动调整</option>                <option value="1">已通过 </option>            </select>        </div>        <div class="row-cell">            <input class="form-control from-membership-type-drop-down" kendo-drop-down-list                   k-data-source="fromMembershipTypeList" k-filter="\'contains\'"                   k-data-text-field="\'name\'" k-data-value-field="\'id\'"                   k-change="criteriaFromTypeChange"                   ng-model="criteria.fromTypeId" />        </div>        <div class="row-cell">            <input class="form-control to-membership-type-drop-down" kendo-drop-down-list                   k-data-source="toMembershipTypeList" k-filter="\'contains\'"                   k-data-text-field="\'name\'" k-data-value-field="\'id\'"                   k-change="criteriaToTypeChange"                   ng-model="criteria.toTypeId" />        </div>    </div>    <div class="transaction-list-table row">        <table class="enyo-table-header-primary">            <thead>                <tr>                    <th style="width:85px;">患者名称</th>                    <th style="width:100px;">变动前等级</th>                    <th style="width:100px;">变动后等级</th>                    <th style="width:80px;">变动类型</th>                    <th style="width:80px;">操作人</th>                    <th style="width:120px;">会员卡号</th>                    <th style="width:120px;">备注</th>                    <th style="width:120px;" ng-if="isShowOfficeSelect()">处理诊所</th>                    <th style="width:120px;">处理时间</th>                    <th style="width:80px;">处理类型</th>                </tr>            </thead>        </table>        <div class="transaction-list-table-body">            <table class="enyo-table-primary">                <tbody>                    <tr ng-repeat="transactionItem in membershipTypeTransactions">                        <td style="width:85px;">{{ transactionItem.patientName }}</td>                        <td style="width:100px;">{{ transactionItem.fromTypeName}}</td>                        <td style="width:100px;" ng-bind-html="transactionItem.toTypeName"></td>                        <td style="width:80px;">{{ transactionItem.applyModeStr }}</td>                        <td style="width:80px;">{{ transactionItem.operatorName }}</td>                        <td style="width:120px;">{{transactionItem.membershipCardNumber }}</td>                        <td style="width:120px;">{{ transactionItem.note }}</td>                        <td style="width:120px;" ng-if="isShowOfficeSelect()">{{ transactionItem.officeName }}</td>                        <td style="width:120px;">{{ transactionItem.transactionTimeeStr }}</td>                        <td style="width:80px;">{{ transactionItem.operationModeStr}}</td>                    </tr>                </tbody>            </table>        </div>    </div>    <div class="transaction-list-table-page lc-table-footer row">        <div pagination total-items="totalCount"             items-per-page="criteria.pageSize"             ng-model="criteria.pageIndex" ng-change="searchTransaction()"             max-size="10"             first-text="第一页"             previous-text="前一页"             next-text="后一页"             last-text="最后一页"             rotate="true"             class="pagination new-page-color" boundary-links="true" style="margin:0;"></div>        <ul class="pagination new-page-color pagination-to-page" style="margin:0">            <li class="disabled">                <a style="padding: 0;padding-left: 5px;padding-right: 5px;">                    每页                    <input kendo-numeric-text-box k-min="1" k-max="50"                           k-ng-model="criteria.pageSize"                           style="width:63px;" k-on-change="searchTransaction();"                           k-options="{format: \'#\', decimals:0}" />                    条                </a>            </li>        </ul>        <ul class="pagination" style="margin:0">            <li class="disabled">                <a>共{{ totalCount }}条</a>            </li>        </ul>    </div></div>');templateCache.put('/app/gift/views/patient-info/membership-ajust-point-view.html','<div ares-modal-dragable ares-clean-kendo id="ajust-potint-wrap">    <style>        #ajust-potint-wrap .control-label {            font-weight: 400;            margin-left: 10px;        }    </style>    <div class="modal-header ares-dialog-header">        <button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">&times;</span></button>        <h4 class="modal-title">积分调整</h4>    </div>    <div class="modal-body ares-dialog-body">        <form class="form-horizontal">            <div class="form-group">                <label class="col-sm-2 control-label">当前积分：</label>                <label class="control-content col-sm-1">{{patient.point}}</label>            </div>            <div class="form-group">                <label class="control-label col-sm-2">调整为：</label>                <div class="col-sm-3 input-container">                    <input id="pointRatio" name="pointRatio" style="width:130px;"                           kendo-numeric-text-box k-min="0" k-max="9999999999" k-step="1"                           k-options="{format: \'n2\', decimals:0, spinners: false}"                           k-ng-model="patientPointAjust.patientPoint"                           class="not-ignore" />                </div>            </div>            <div class="form-group">                <label class="control-label col-sm-2">备注：</label>                <div class="col-sm-8 input-container">                    <input id="pointRatio" name="pointRatio" type="text"                           class="form-control" style="width:450px;max-width:450px;"                           ng-model="patientPointAjust.notes" />                </div>            </div>        </form>    </div>    <div class="modal-footer ares-dialog-footer" style="text-align:center">        <button type="button" class="btn btn-primary" ng-click="save()">确定</button>        <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>    </div></div>');templateCache.put('/app/gift/views/patient-info/membership-card-view.html','<div ares-modal-dragable ares-clean-kendo>    <style>        #mainForm input, select {            max-width: 200px;        }            #mainForm input[type=checkbox] {                width: 16px;                height: 16px;                margin: -3px 0 0 0;                vertical-align: middle;            }        #mainForm label {            font-weight: 400;            margin: 0;        }        #mainForm .control-group .form-group:last-child {            margin-bottom: 0;        }    </style>    <div class="modal-header ares-dialog-header">        <button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">&times;</span></button>        <h4 class="modal-title">{{title}}</h4>    </div>    <div class="modal-body ares-dialog-body" style="padding:20px;">        <form id="mainForm" name="mainForm" class="form-horizontal">            <div class="control-group">                <div class="form-group">                    <label class="control-label col-sm-3">患者：</label>                    <label class="control-content">{{patient.name}}</label>                </div>                <div class="form-group">                    <label for="cardNumber" class="control-label col-sm-3">会员卡号：</label>                    <input class="form-control" id="cardNumber" ng-trim="false" ng-model="membership.cardNumber" autocomplete="off" ng-required="true" ng-keyup="onCardNumberChanged()" autofocus />                </div>                <div class="form-group">                    <label for="membershipType" class="control-label col-sm-3">会员等级：</label>                    <input class="form-control" id="membershipType" style="width:140px;" ng-disabled="isDisabled" />                </div>                <div class="form-group">                    <label for="membershipType" class="control-label col-sm-3">有效期：</label>                    <input id="validEndTimePicker" class="form-control" kendo-date-picker ng-model="membership.vaildEndTime"                           k-format="\'yyyy-MM-dd\'" k-parse-formats="[\'yyyy-MM-dd\']" k-options="datepickerOptions" />                </div>                <div class="form-group" ng-hide="isEditMode">                    <label for="membershipType" class="control-label col-sm-3">实体卡选项：</label>                    <div class="col-sm-5 row">                        <label class="col-sm-6" style="padding:0;line-height:34px;">                            <input type="checkbox" ng-model="writeICCard" />&nbsp;写入IC卡                        </label>                        <label class="col-sm-6" style="padding:0;line-height:34px;">                            <input type="checkbox" ng-model="membership.isCheckDiscount" />&nbsp;验卡打折                        </label>                    </div>                    <label class="col-sm-4" style="padding:0;line-height:34px;">                        <input type="checkbox" ng-model="membership.isCheckPayment" />&nbsp;验卡扣减预付费                    </label>                </div>            </div>        </form>    </div>    <div class="modal-footer ares-dialog-footer" style="text-align:center;">        <button type="button" class="btn btn-primary" ng-click="ok()" ng-disabled="mainForm.$invalid">确认</button>        <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>    </div></div>');templateCache.put('/app/gift/views/patient-info/membership-detail-transaction-history-view.html','<div ares-modal-dragable ares-clean-kendo>    <style scoped>        #membershipInfo .control-content {            padding-top: 0;            margin-left: -15px;        }        #discountPlanDetailTransactionList td {            padding: 0;        }        .k-grid .btn {            padding: 1px 4px 1px 6px;        }    </style>    <div class="modal-header ares-dialog-header">        <button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">&times;</span></button>        <h4 class="modal-title">折扣方案使用记录</h4>    </div>    <div class="modal-body ares-dialog-body">        <div id="discountPlanDetailTransactionList" style="height:400px"></div>    </div>    <div class="modal-footer ares-dialog-footer">        <button type="button" class="btn btn-default" ng-click="cancel()">关闭</button>    </div></div>');templateCache.put('/app/gift/views/patient-info/membership-detail-view.html','<div class="ares-main-content patient-action-info" id="patient-membership-info" ares-clean-kendo>    <style>        #patient-membership-info .info-row {            min-height: 30px;            margin-top: 15px;            font-size: 0;        }        #patient-membership-info #advance-payment-info {            display: inline-block;            vertical-align: middle;            width: calc(50% - 10px);            margin: 0 10px 0 0;        }        #patient-membership-info #point-info {            display: inline-block;            vertical-align: middle;            width: calc(50% - 15px);            margin: 0 0 0 10px;        }    </style>    <div class="info-row">        <patient-advance-payment-block-view id="advance-payment-info"                                            patient="patient"                                            membership="membership"                                            advance-payment="advancePayment"                                            refresh-patient-membership="refreshPatientMembership"                                            register-patient-membership-callback="registerPatientMembershipCallback"></patient-advance-payment-block-view>        <patient-point-block-view id="point-info"                                  ng-if="isShowPatientPoint()"                                  patient="patient"                                  membership="membership"                                  refresh-patient-membership="refreshPatientMembership"                                  register-patient-membership-callback="registerPatientMembershipCallback"></patient-point-block-view>    </div>    <div class="info-row">        <patient-membership-card-block-view patient="patient"                                            membership="membership"                                            advance-payment="advancePayment"                                            refresh-patient-membership="refreshPatientMembership"                                            register-patient-membership-callback="registerPatientMembershipCallback"></patient-membership-card-block-view>    </div>    <div class="info-row">        <patient-gift-certificates-block-view patient="patient"                                              gift-certificate-count-summary="giftCertificateCountSummary"                                              gift-certificates="giftCertificates"                                              register-patient-membership-callback="registerPatientMembershipCallback"></patient-gift-certificates-block-view>    </div>    <!--<div class="info-row" ng-if="isPreferentialCardEnabled">        <patient-membership-prederential-card-block-view patient="patient"                                                         membership="membership"                                                         gift-certificates="giftCertificates"                                                         refresh-patient-membership="refreshPatientMembership"                                                         register-patient-membership-callback="registerPatientMembershipCallback"></patient-membership-prederential-card-block-view>    </div>--></div>');templateCache.put('/app/gift/views/patient-info/membership-gift-status-view.html','<div ares-modal-dragable ares-clean-kendo>    <div class="modal-header ares-dialog-header">        <button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">&times;</span></button>        <h4 class="modal-title">回馈使用记录</h4>    </div>    <div class="modal-body ares-dialog-body">        <form id="giftStatus" name="giftStatus" class="form-horizontal">            <div class="form-group" style="padding:10px;">                <div id="giftStatusHistory"></div>            </div>        </form>    </div>    <div class="modal-footer ares-dialog-footer">        <button type="button" class="btn btn-default" ng-click="cancel()">关闭</button>    </div></div>');templateCache.put('/app/gift/views/patient-info/membership-point-history-view.html','<div ares-modal-dragable ares-clean-kendo>    <style scoped>        #membershipInfo .control-content {            padding-top: 0;            margin-left: -15px;        }        .k-grid td {            padding: 0;        }        .k-grid .btn {            padding: 1px 4px 1px 6px;        }    </style>    <div class="modal-header ares-dialog-header">        <button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">&times;</span></button>        <h4 class="modal-title">积分变更记录</h4>    </div>    <div class="modal-body ares-dialog-body">        <div id="transactionList" style="height:400px"></div>    </div>    <div class="modal-footer ares-dialog-footer">        <button type="button" class="btn btn-default" ng-click="cancel()">关闭</button>    </div></div>');templateCache.put('/app/gift/views/patient-info/membership-prederential-card-view.html','<div ares-modal-dragable ares-clean-kendo class="membership-prederential-card-view">    <style scoped>        .membership-prederential-card-view input,select {            max-width:200px;        }        .membership-prederential-card-view input[type=checkbox] {            width:16px;            height:16px;            margin:-3px 0 0 0;            vertical-align:middle;        }        .membership-prederential-card-view label {            font-weight:400;            margin:0;        }        .membership-prederential-card-view .control-group .form-group:last-child {            margin-bottom:0;        }    </style>    <div class="modal-header ares-dialog-header">        <button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">&times;</span></button>        <h4 class="modal-title">修改优惠卡号</h4>    </div>    <div class="modal-body ares-dialog-body" style="padding:20px;">        <form id="mainForm" name="mainForm" class="form-horizontal">            <div class="control-group">                <div class="form-group">                    <label class="control-label col-sm-3">患者：</label>                    <label class="control-content">{{patient.name}}</label>                </div>                <div class="form-group">                    <label for="cardNo" class="control-label col-sm-3">会员卡号：</label>                    <input class="form-control" id="cardNo" ng-trim="false" ng-model="membership.cardNo" autocomplete="off" ng-keyup="onCardNumberChanged()" autofocus />                </div>                <div class="form-group">                    <label for="membershipType" class="control-label col-sm-3">有效期：</label>                    <input id="validEndTimePicker" class="form-control" kendo-date-picker ng-model="membership.validEndTime"                           k-format="\'yyyy-MM-dd\'" k-parse-formats="[\'yyyy-MM-dd\']" k-options="datepickerOptions" />                </div>            </div>        </form>    </div>    <div class="modal-footer ares-dialog-footer" style="text-align:center;">        <button type="button" class="btn btn-primary" ng-click="editCard()" ng-disabled="mainForm.$invalid">确认</button>        <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>    </div></div>');templateCache.put('/app/gift/views/patient-info/membership-share-view.html','<div ares-modal-dragable ares-clean-kendo id="membership-share-edit-wrap">    <style scoped>        #membership-share-edit-wrap .ares-dialog-body .info-row {            margin-top: 20px;            font-size: 0;        }            #membership-share-edit-wrap .ares-dialog-body .info-row:first-child {                margin-top: 0;            }            #membership-share-edit-wrap .ares-dialog-body .info-row .notes-value .search-box {                padding-left: 0;                padding-right: 0;            }        #membership-share-edit-wrap .ares-dialog-body .notes-title {            display: inline-block;            vertical-align: middle;            font-size: 14px;            font-weight: 400;            min-width: 70px;            margin: 0;            padding: 0;        }        #membership-share-edit-wrap .ares-dialog-body .notes-value {            display: inline-block;            vertical-align: middle;            font-size: 14px;            margin: 0;            padding: 0;            min-width: 225px;        }            #membership-share-edit-wrap .ares-dialog-body .notes-value .checkbox-label {                display: inline-block;                vertical-align: middle;                line-height: 34px;                font-weight: 400;                margin: 0;                width: 90px;            }                #membership-share-edit-wrap .ares-dialog-body .notes-value .checkbox-label input[type=checkbox] {                    width: 16px;                    height: 16px;                    margin: -3px 0 0 0;                    vertical-align: middle;                }        #membership-share-edit-wrap .ares-dialog-body .notes-content .notes-title {            vertical-align: top;        }        #membership-share-edit-wrap .ares-dialog-body .notes-content .notes-value {            vertical-align: top;        }    </style>    <div class="modal-header ares-dialog-header">        <button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">&times;</span></button>        <h4 class="modal-title">会员卡分享</h4>    </div>    <div class="modal-body ares-dialog-body" style="padding:20px;">        <div class="info-row">            <span class="notes-title">患者查询：</span>            <div class="notes-value">                <ares-patient-search ng-model="patient"                                     on-patient-selected="onPatientSelected"                                     is-global-search="false"></ares-patient-search>            </div>        </div>        <div class="info-row">            <patient-full-card patient="patient"></patient-full-card>        </div>        <div class="info-row">            <span class="notes-title">                会员权益共享：            </span>            <div class="notes-value">                <label class="checkbox-label">                    <input type="checkbox" ng-model="share.discountIncluded" ng-click="onCheckBoxClicked()">折扣方案                </label>                <label class="checkbox-label">                    <input type="checkbox" ng-model="share.chargeIncluded" ng-click="onCheckBoxClicked()">充值方案                </label>                <label class="checkbox-label">                    <input type="checkbox" ng-model="share.pointIncluded" ng-click="onCheckBoxClicked()">积分方案                </label>            </div>        </div>        <div class="info-row">            <span class="notes-title" style="width: 100px;">                余额共享：            </span>            <div class="notes-value">                <label class="checkbox-label">                    <input type="checkbox" ng-model="share.balanceIncluded" ng-click="onCheckBoxClicked()">储值卡余额                </label>                <label class="checkbox-label" ng-if="!isMembershipBalanceShareDisabled">                    <input type="checkbox"                            ng-model="share.isPatientPontInclde"                            ng-click="onCheckBoxClicked()">积分余额                </label>            </div>        </div>        <div class="notes-content info-row" style="margin-top:0px;">            <span class="notes-title" style="width: 100px;">备注：</span>            <div class="notes-value">                <textarea class="form-control" rows="2"                          ng-model="share.notes"                          style="width:480px;max-width:480px;"></textarea>            </div>        </div>        <!--<form id="mainForm" name="mainForm" class="form-horizontal">            <div class="control-group">                <div class="panel panel-default">                    <div class="panel-heading">共享人信息</div>                    <div class="panel-body">                        <table ng-hide="action==\'edit\'">                            <tr>                                <td style="width: 110px; text-align: right; padding-right: 10px; ">                                    <label class="control-label" style="padding: 0; margin-bottom: 10px;">共享人查询</label>                                </td>                                <td>                                    <ares-patient-search ng-model="patient" on-patient-selected="onPatientSelected" is-global-search="false"></ares-patient-search>                                </td>                            </tr>                        </table>                        <patient-full-card patient="patient"></patient-full-card>                    </div>                </div>                <div class="panel panel-default">                    <div class="panel-heading">                        共享权限                        <label><input type="checkbox" ng-model="share.isAllSelected" ng-click="onAllCheckBoxClicked()">全选</label>                    </div>                    <div class="panel-body" style="padding: 5px; padding-bottom: 15px;">                        <label class="checkbox control-label bodycheck-lable" style="margin-left:30px">                            <input type="checkbox" ng-model="share.discountIncluded" ng-click="onCheckBoxClicked()">折扣方案                        </label>                        <label class="checkbox control-label bodycheck-lable">                            <input type="checkbox" ng-model="share.chargeIncluded" ng-click="onCheckBoxClicked()">充值方案                        </label>                        <label class="checkbox control-label bodycheck-lable">                            <input type="checkbox" ng-model="share.pointIncluded" ng-click="onCheckBoxClicked()">积分方案                        </label>                        <label class="checkbox control-label bodycheck-lable">                            <input type="checkbox" ng-model="share.balanceIncluded" ng-click="onCheckBoxClicked()">储值卡余额                        </label>                    </div>                </div>                <div class="panel panel-default">                    <div class="panel-heading">备注</div>                    <div class="panel-body" style="padding: 5px;">                        <textarea class="form-control" id="notes" rows="3" ng-model="share.notes" style="max-width:600px"></textarea>                    </div>                </div>            </div>        </form>-->    </div>    <div class="modal-footer ares-dialog-footer" style="text-align:center;">        <button type="button" class="btn btn-primary" ng-click="ok()" ng-disabled="mainForm.$invalid">确定</button>        <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>    </div></div>');templateCache.put('/app/gift/views/patient-info/membership-transaction-history-view.html','<div ares-modal-dragable ares-clean-kendo class="enyo">    <style scoped>        #membershipInfo label {            margin-bottom: 0;        }        #membershipInfo .control-content {            padding-top: 0;            margin-left: -15px;            font-weight: 400;        }        .k-grid td {            padding: 0;        }        .k-grid .btn {            padding: 1px 4px 1px 6px;        }    </style>    <div class="enyo-modal-container">        <div class="enyo-modal-header clearfix">            <div class="pull-left enyo-modal-title">储值卡交易记录</div>            <div class="pull-right iconfont icon-guanbi" ng-click="cancel();"></div>        </div>        <div class="enyo-modal-content" style="padding:10px 10px 5px 10px;">            <div id="membershipInfo" style="width:650px">                <div class="row">                    <div class="form-group col-md-4">                        <label class="control-label">持卡人：</label>                        <label class="control-content" style="margin-left:5px">{{patient.name}}</label>                    </div>                    <div class="form-group col-md-4">                        <label class="control-label">本金余额：</label>                        <label class="control-content" style="margin-left:5px">{{advancePayment.balance}}</label>                    </div>                    <div class="form-group col-md-4">                        <label class="control-label">馈赠金余额：</label>                        <label class="control-content" style="margin-left:5px">{{advancePayment.presentPrice}}</label>                    </div>                </div>            </div>            <div id="transactionList" style="height:400px"></div>        </div>        <div class="enyo-modal-footer" style="text-align:center;position:relative;padding:10px 0;">            <button id="print" print-div="A4Template"                    class="btn btn-default" style="position:absolute;right:20px;">                打印            </button>            <button type="button" class="btn btn-default" ng-click="cancel()">关闭</button>        </div>    </div>    <div id="A4Template" style="display:none; ">        <style scoped>            .titleFont {                font-size: smaller;            }        </style>        <div id="templateBody" style="font-size:smaller;padding:0 130px 0 10px;">            <div style="text-align:center">客户预付费(储值卡)变动情况</div>            <div style="border-bottom:3px solid black;">                <table style="width:100%;">                    <tr>                        <td class="titleFont">姓名：{{patient.name}}</td>                        <td class="titleFont">病历号：{{patient.privateId}}</td>                        <td class="titleFont">本金余额：{{advancePayment.balance}}</td>                        <td class="titleFont">馈赠金余额：{{advancePayment.presentPrice}}</td>                    </tr>                </table>            </div>            <div style="border-bottom:1px solid black;">                <table style="width:100%;">                    <thead>                        <tr>                            <th style="text-align:left;font-weight:bolder;" class="titleFont">操作</th>                            <th style="text-align:left;font-weight:bolder;" class="titleFont">操作时间</th>                            <th style="text-align:left;font-weight:bolder;" class="titleFont">收费方式</th>                            <th style="text-align:left;font-weight:bolder;" class="titleFont">本金金额</th>                            <th style="text-align:left;font-weight:bolder;" class="titleFont">馈赠金金额</th>                            <th style="text-align:left;font-weight:bolder;" class="titleFont">总金额</th>                            <th style="text-align:left;font-weight:bolder;" class="titleFont">本金余额</th>                            <th style="text-align:left;font-weight:bolder;" class="titleFont">馈赠金余额</th>                            <th style="text-align:left;font-weight:bolder;" class="titleFont">余额</th>                            <th style="text-align:left;font-weight:bolder;" class="titleFont">备注</th>                        </tr>                    </thead>                    <tbody>                        <tr ng-repeat="item in allTransactionHistory.items">                            <td class="titleFont">{{item.transactionTypeName}}</td>                            <td class="titleFont">{{item.operationTimeStr}}</td>                            <td class="titleFont">{{item.payType}}</td>                            <td class="titleFont">{{item.principalAmount}}</td>                            <td class="titleFont">{{item.giftAmount}}</td>                            <td class="titleFont">{{item.amount}}</td>                            <td class="titleFont">{{item.principalBalance}}</td>                            <td class="titleFont">{{item.giftBalance}}</td>                            <td class="titleFont">{{item.balance}}</td>                            <td class="titleFont">{{item.notes}}</td>                        </tr>                    </tbody>                </table>            </div>            <div>                <table style="width:100%;" class="titleFont">                    <tr>                        <td width="50%" style="font-size:15px">客户签字：</td>                        <td width="50%" style="font-size:15px">日期：</td>                    </tr>                </table>            </div>        </div>    </div>    <div id="{{privateTemplate.templateCode}}" style="display:none; ">        <div ng-bind-html="privateTemplate.templateContent">        </div>    </div></div>');templateCache.put('/app/gift/views/patient-info/membership-transfer-view.html','<div ares-modal-dragable ares-clean-kendo>    <style>    </style>    <div class="modal-header ares-dialog-header">        <button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">&times;</span></button>        <h4 class="modal-title">转账</h4>    </div>    <div class="modal-body ares-dialog-body" style="padding:20px;">        <div class="form-group">            <table>                <tr>                    <td style="width: 110px; text-align: center; padding-right: 10px; ">                        <label class="control-label" style="padding: 0; margin-bottom: 10px;">患者查询</label>                    </td>                    <td>                        <div class="form-group" style="margin-left:-5px;">                            <ares-patient-search ng-model="patient" on-patient-selected="onPatientSelected" is-global-search="false"></ares-patient-search>                        </div>                    </td>                </tr>                <tr>                    <td colspan="2">                        <patient-full-card patient="patient"></patient-full-card>                    </td>                </tr>                <tr>                    <td>                        <label for="amount" class="col-sm-12 control-label" style="margin-top:5px;">转账金额</label>                    </td>                    <td>                        <div class="form-group" style="margin-top:10px;">                            <input id="amount" style="width:200px;" kendo-numeric-text-box                                   k-min="0" k-max="99999999" k-step="10" k-options="{format: \'#.##\', decimals:2}"                                   k-ng-model="transfer.amount" autofocus />                        </div>                    </td>                </tr>            </table>        </div>    </div>    <div class="modal-footer ares-dialog-footer">        <button type="button" class="btn btn-default" ng-click="save()">保存</button>        <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>    </div>    <notification-upload-success></notification-upload-success></div>');templateCache.put('/app/gift/views/patient-info/patient-gift-certificate-view.html','<div ares-modal-dragable ares-clean-kendo>    <div class="modal-header ares-dialog-header">        <button type="button" class="close" ng-click="cancel()" aria-label="Close">            <span aria-hidden="true">&times;</span>        </button>        <h4 class="modal-title">查看优惠方案</h4>    </div>    <div class="modal-body ares-dialog-body">        <div class="panel panel-primary">            <div class="panel-heading">基本信息</div>            <div class="panel-body" style="margin-left: -20px;">                <form id="BasicInfoForm" name="BasicInfoForm" class="form-horizontal" style="width:800px">                    <div class="form-group">                        <label for="name" class="control-label col-sm-2">名称</label>                        <div class="col-sm-10 input-container">                            <input id="name" name="name" class="form-control" ng-model="giftCertificate.certificateName"                                   autofocus disabled />                        </div>                    </div>                    <div class="form-group">                        <label for="name" class="control-label col-sm-2">发布时间段</label>                        <div class="col-sm-3 input-container">                            <input id="startDatePicker" type="text" class="form-control" kendo-date-time-picker                                   k-ng-model="timeSpan.startDate" k-format="\'yyyy-MM-dd HH:mm\'"                                   k-parse-formats="[\'yyyyMMdd\']" style="width: 190px;" disabled>                        </div>                        <label class="control-label col-sm-1" style="margin-left:-30px;">至</label>                        <div class="col-sm-4 input-container">                            <input id="endDatePicker" type="text" class="form-control" kendo-date-time-picker                                   k-ng-model="timeSpan.endDate" k-format="\'yyyy-MM-dd HH:mm\'"                                   k-parse-formats="[\'yyyyMMdd\']" style="width: 190px;" disabled>                        </div>                    </div>                    <div class="form-group">                        <label for="showName" class="control-label col-sm-2">显示名</label>                        <div class="col-sm-10 input-container">                            <input id="showName" name="showName" class="form-control"                                   ng-model="giftCertificate.showName"                                   autofocus disabled />                        </div>                    </div>                    <div class="form-group">                        <label for="showName" class="control-label col-sm-2">卡券号</label>                        <div class="col-sm-10 input-container">                            <input id="showName" name="showName" class="form-control"                                   ng-model="giftCertificate.cardNo"                                   autofocus disabled />                        </div>                    </div>                    <div class="form-group"                         ng-if="giftCertificate.giftCertificateType == 1||giftCertificate.giftCertificateType == 2">                        <label for="showName" class="control-label col-sm-2">面值</label>                        <div class="col-sm-10 input-container">                            <input id="originalPrice" name="originalPrice" class="form-control"                                   ng-model="giftCertificate.originalPrice"                                   autofocus disabled />                        </div>                    </div>                    <div class="form-group" ng-if="giftCertificate.giftCertificateType == 2">                        <label for="showName" class="control-label col-sm-2">剩余金额</label>                        <div class="col-sm-10 input-container">                            <input id="remainAmount" name="remainAmount" class="form-control"                                   ng-model="giftCertificate.remainAmount"                                   autofocus disabled />                        </div>                    </div>                    <div class="form-group">                        <label for="describe" class="control-label col-sm-2">描述</label>                        <div class="col-sm-10 input-container" style="margin-top:10px;">                            <label>{{giftCertificate.describe}}</label>                        </div>                    </div>                    <div class="form-group">                        <label for="describe" class="control-label col-sm-2">领用备注</label>                        <div class="col-sm-10 input-container">                            <textarea class="form-control" ng-model="giftCertificate.notes"                                      rows="3" style="width:400px;height:60px;" disabled                                      id="describe" name="describe" maxlength="2000"></textarea>                        </div>                    </div>                    <div ng-if="transactionId">                        <div class="form-group">                            <label class="control-label col-sm-2">领用时间</label>                            <div class="col-sm-10 input-container" style="margin-top: 7px;">                                <label>{{timeSpan.receiveDateStr}}</label>                            </div>                        </div>                        <div class="form-group">                            <label class="control-label col-sm-2">可用时间</label>                            <div class="col-sm-4 input-container" style="margin-top: 7px;width:150px;">                                <label>{{timeSpan.useStartDateStr}}</label>                            </div>                            <label class="col-sm-1" style="margin-top: 7px;">至</label>                            <div class="col-sm-4 input-container" style="margin-top: 7px;">                                <label>{{timeSpan.useEndDateStr}}</label>                            </div>                        </div>                    </div>                </form>            </div>        </div>        <div class="panel panel-primary" ng-if="giftCertificate.giftCertificateType == 3">            <div class="panel-heading">卡内金额</div>            <div class="panel-body" style="margin-left: -20px;">                <form id="BasicInfoForm" name="BasicInfoForm" class="form-horizontal" style="width:800px">                    <div class="form-group">                        <label for="name" class="control-label col-sm-2" style="color:red">金额 *</label>                        <div class="col-sm-2 input-container" style="margin-right: 0px">                            <input id="name" name="name" class="form-control" maxlength="30" ng-model="giftCertificate.originalPrice"                                   autofocus disabled />                        </div>                        <label class="control-label col-sm-1" style="text-align:left;">元</label>                        <div style="height:40px;margin-left:10px;line-height:40px;">                            <input type="checkbox" ng-model="giftCertificate.isMultipleUse"                                   style="width:18px;height:18px;margin:0;vertical-align:middle"                                   disabled>                            <label style="vertical-align:middle;margin:0;">                                卡内金额用尽时不再享受优惠方案                            </label>                        </div>                    </div>                </form>            </div>        </div>        <div class="panel panel-primary">            <div class="panel-heading">                使用范围            </div>            <div class="panel-body">                <form id="DiscountPlanForm" name="DiscountPlanForm" class="form-horizontal" style="width:800px">                    <div class="radio">                        <div style="margin-left:20px">                            <div class="form-group" style="margin-top: -5px;width:700px">                                <div class="col-sm-2">                                    <div class="col-sm-8">                                    </div>                                </div>                                <div class="form-group" style="margin-top: -5px;margin-left:15px;">                                    <style scoped>                                        .default-discount {                                            color: red;                                        }                                    </style>                                    <table class=" table table-striped table-bordered"                                           ng-if="giftCertificate.giftCertificateType == 0 || giftCertificate.giftCertificateType == 3">                                        <thead>                                            <tr>                                                <th class="text-left">名称</th>                                                <th class="text-left">折扣</th>                                                <th class="text-left">数量</th>                                                <th class="text-left">可用数量</th>                                                <th class="text-left">类型</th>                                            </tr>                                        </thead>                                        <tbody>                                            <tr ng-repeat="detailplan in giftCertificate.discountPlanDetailList">                                                <td>{{ ::detailplan.itemName }}</td>                                                <td>{{ ::detailplan.discount }}</td>                                                <td>{{ ::detailplan.maxCount }}</td>                                                <td>                                                    <input style="width:80px;" ng-hide="detailplan.detailType==\'catagory\'"                                                           kendo-numeric-text-box k-min="0" k-max="9999" k-step="1"                                                           k-options="{format: \'#\'}" ng-disabled="!isSpecialAccount"                                                           k-on-change="onRemainCountChange(kendoEvent,\'handle\',$index)"                                                           k-ng-model="detailplan.remainCount" class="not-ignore" />                                                </td>                                                <td ng-class="$index==0? \'default-discount\':\'\'">                                                    {{detailplan.detailType|toDiscountHandleType}}                                                </td>                                            </tr>                                        </tbody>                                    </table>                                    <table class=" table table-striped table-bordered"                                           ng-if="giftCertificate.giftCertificateType == 1">                                        <thead>                                            <tr>                                                <th class="text-left">名称</th>                                                <th class="text-left">数量</th>                                                <th class="text-left">可用数量</th>                                            </tr>                                        </thead>                                        <tbody>                                            <tr ng-repeat="plan in giftCertificate.giftCertificatePlanList">                                                <td>{{ ::plan.itemName }}</td>                                                <td>{{ ::plan.maxCount }}</td>                                                <td>                                                    <input style="width:80px;" ng-hide="detailplan.detailType==\'catagory\'"                                                           kendo-numeric-text-box k-min="0" k-max="9999" k-step="1"                                                           k-options="{format: \'#\'}" ng-disabled="!isSpecialAccount"                                                           k-on-change="onRemainCountChange(kendoEvent,\'handle\',$index)"                                                           k-ng-model="plan.remainCount" class="not-ignore" />                                                </td>                                            </tr>                                        </tbody>                                    </table>                                    <table class=" table table-striped table-bordered"                                           ng-if="giftCertificate.giftCertificateType == 2">                                        <thead>                                            <tr>                                                <th class="text-left">名称</th>                                                <th class="text-left">类型</th>                                            </tr>                                        </thead>                                        <tbody>                                            <tr ng-repeat="limit in giftCertificate.giftCertificateLimitList">                                                <td>{{ ::limit.itemName }}</td>                                                <td>{{ ::limit.detailType|toDiscountHandleType }}</td>                                            </tr>                                        </tbody>                                    </table>                                </div>                            </div>                        </div>                    </div>                </form>            </div>        </div>    </div>    <div class="modal-footer ares-dialog-footer">        <button ng-if="(giftCertificate.giftCertificateType == 0 || giftCertificate.giftCertificateType == 1) && isSpecialAccount"                ng-disabled="isSaving"                type="button" class="btn btn-default" ng-click="save()">            保存        </button>        <button type="button" class="btn btn-default" ng-click="cancel()">关闭</button>    </div></div>');})();